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.
 java.util.Map receiveMessage()
          Receive the next message from the server.
 void sendMessage(java.util.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(java.util.Map message)
                 throws java.io.IOException
Send the given message to the server service. NOTE: blocking op

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

receiveMessage

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

Returns:
message received
Throws:
java.io.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 -