|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.clientmessageservice.secure.impl.SecureMessageServiceClientHelper
public class SecureMessageServiceClientHelper
Constructor Summary | |
---|---|
protected |
SecureMessageServiceClientHelper(String server_address,
int server_port,
int timeout_secs,
String msg_type_id,
RSAPublicKey public_key)
|
Method Summary | |
---|---|
void |
close()
Drop and closedown the connection with the server. |
static ClientMessageService |
getServerService(String server_address,
int server_port,
int timeout_secs,
String msg_type_id,
RSAPublicKey public_key)
|
Map |
receiveMessage()
Receive the next message from the server. |
void |
sendMessage(Map plain_payload)
Send the given message to the server service. |
void |
setMaximumMessageSize(int max_bytes)
Override the default max message size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SecureMessageServiceClientHelper(String server_address, int server_port, int timeout_secs, String msg_type_id, RSAPublicKey public_key) throws IOException
IOException
Method Detail |
---|
public static ClientMessageService getServerService(String server_address, int server_port, int timeout_secs, String msg_type_id, RSAPublicKey public_key) throws IOException
IOException
public void sendMessage(Map plain_payload) throws IOException
ClientMessageService
sendMessage
in interface ClientMessageService
plain_payload
- (bencode-able) to send
IOException
- on errorpublic Map receiveMessage() throws IOException
ClientMessageService
receiveMessage
in interface ClientMessageService
IOException
- on errorpublic void close()
ClientMessageService
close
in interface ClientMessageService
public void setMaximumMessageSize(int max_bytes)
ClientMessageService
setMaximumMessageSize
in interface ClientMessageService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |