com.google.bitcoin.net
Interface MessageWriteTarget

All Known Implementing Classes:
BlockingClient, NioClient

public interface MessageWriteTarget

A target to which messages can be written/connection can be closed


Method Summary
 void closeConnection()
          Closes the connection to the server, triggering the StreamParser.connectionClosed() event on the network-handling thread where all callbacks occur.
 void writeBytes(byte[] message)
          Writes the given bytes to the remote server.
 

Method Detail

writeBytes

void writeBytes(byte[] message)
                throws IOException
Writes the given bytes to the remote server.

Throws:
IOException

closeConnection

void closeConnection()
Closes the connection to the server, triggering the StreamParser.connectionClosed() event on the network-handling thread where all callbacks occur.



Copyright © 2014. All rights reserved.