com.aelitis.azureus.core.clientmessageservice
Interface ClientMessageService

All Known Implementing Classes:
AEClientService, SecureMessageServiceClientHelper

public interface ClientMessageService


Method Summary
 void close()
          Drop and closedown the connection with the server.
 Map receiveMessage()
          Receive the next message from the server.
 void sendMessage(Map message)
          Send the given message to the server service.
 void setMaximumMessageSize(int max_bytes)
          Override the default max message size
 

Method Detail

sendMessage

void sendMessage(Map message)
                 throws IOException
Send the given message to the server service. NOTE: blocking op

Parameters:
message - (bencode-able) to send
Throws:
IOException - on error

receiveMessage

Map receiveMessage()
                   throws IOException
Receive the next message from the server. NOTE: blocking op

Returns:
message received
Throws:
IOException - on error

close

void close()
Drop and closedown the connection with the server.


setMaximumMessageSize

void setMaximumMessageSize(int max_bytes)
Override the default max message size

Parameters:
max_bytes -