Метод | Описание | |
---|---|---|
Dispose ( ) : void | ||
NetworkConnection ( ) : System | ||
NetworkConnection ( |
||
NetworkConnection ( |
Connect to the given IP address using the port specified as part of the network parameters. Once construction is complete a functioning network channel is set up and running.
|
|
Ping ( ) : void |
Sends a "ping" message to the remote node. The protocol doesn't presently use this feature much.
|
|
ReadMessage ( ) : |
Reads a network message from the wire, blocking until the message is fully received.
|
|
Shutdown ( ) : void |
Shuts down the network socket. Note that there's no way to wait for a socket to be fully flushed out to the wire, so if you call this immediately after sending a message it might not get sent.
|
|
ToString ( ) : string | ||
WriteMessage ( |
Writes the given message out over the network using the protocol tag. For a Transaction this should be "tx" for example. It's safe to call this from multiple threads simultaneously, the actual writing will be serialized.
|
public NetworkConnection ( |
||
inetAddress | ||
@params | ||
bestHeight | uint | |
connectTimeout | int | |
Результат | System |
public NetworkConnection ( |
||
peerAddress | IP address to connect to. IPv6 is not currently supported by BitCoin. If port is not positive the default port from params is used. | |
@params | ||
bestHeight | uint | How many blocks are in our best chain |
connectTimeout | int | Timeout in milliseconds when initially connecting to peer |
Результат | System |
public WriteMessage ( |
||
message | ||
Результат | void |