|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynergynetframework.appsystem.services.net.objectmessaging.connections.ConnectionHandler
synergynetframework.appsystem.services.net.objectmessaging.Client
public class Client
The Class Client.
| Field Summary | |
|---|---|
static java.util.logging.Logger |
log
The Constant log. |
| Fields inherited from class synergynetframework.appsystem.services.net.objectmessaging.connections.ConnectionHandler |
|---|
udpRemoteAddress |
| Constructor Summary | |
|---|---|
Client()
Instantiates a new client. |
|
Client(int bufferSize)
Instantiates a new client. |
|
| Method Summary | |
|---|---|
void |
addMessageHandler(MessageHandler handler)
Adds the message handler. |
void |
close()
Close. |
void |
connect(int timeout,
java.net.InetAddress host,
int tcpPort)
Connect. |
void |
connect(int timeout,
java.net.InetAddress host,
int tcpPort,
int udpPort)
Connect. |
void |
connect(int timeout,
java.lang.String host,
int tcpPort)
Connect. |
void |
connect(int timeout,
java.lang.String host,
int tcpPort,
int udpPort)
Connect. |
java.lang.Thread |
getUpdateThread()
Gets the update thread. |
boolean |
isConnected()
Checks if is connected. |
void |
removeMessageHandler(MessageHandler listener)
Removes the message handler. |
void |
run()
|
void |
stop()
Stop. |
void |
update(int timeout)
Update. |
| Methods inherited from class synergynetframework.appsystem.services.net.objectmessaging.connections.ConnectionHandler |
|---|
getEndPoint, getID, getRemoteAddressTCP, getRemoteAddressUDP, getTCPConnection, getUDPConnection, notifyConnected, notifyReceived, sendMessage, sendTCP, sendUDP, setEndPoint, setID, setName, setTCPAliveTime, setTCPConnection, setUDPConnection, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.logging.Logger log
| Constructor Detail |
|---|
public Client()
public Client(int bufferSize)
bufferSize - the buffer size| Method Detail |
|---|
public void addMessageHandler(MessageHandler handler)
ConnectionHandler
addMessageHandler in interface EndPointaddMessageHandler in class ConnectionHandlerhandler - the handlerpublic void close()
ConnectionHandler
close in interface EndPointclose in class ConnectionHandler
public void connect(int timeout,
java.net.InetAddress host,
int tcpPort)
throws java.io.IOException
timeout - the timeouthost - the hosttcpPort - the tcp port
java.io.IOException - Signals that an I/O exception has occurred.
public void connect(int timeout,
java.net.InetAddress host,
int tcpPort,
int udpPort)
throws java.io.IOException
timeout - the timeouthost - the hosttcpPort - the tcp portudpPort - the udp port
java.io.IOException - Signals that an I/O exception has occurred.
public void connect(int timeout,
java.lang.String host,
int tcpPort)
throws java.io.IOException
timeout - the timeouthost - the hosttcpPort - the tcp port
java.io.IOException - Signals that an I/O exception has occurred.
public void connect(int timeout,
java.lang.String host,
int tcpPort,
int udpPort)
throws java.io.IOException
timeout - the timeouthost - the hosttcpPort - the tcp portudpPort - the udp port
java.io.IOException - Signals that an I/O exception has occurred.public java.lang.Thread getUpdateThread()
EndPoint
getUpdateThread in interface EndPointpublic boolean isConnected()
public void removeMessageHandler(MessageHandler listener)
ConnectionHandler
removeMessageHandler in interface EndPointremoveMessageHandler in class ConnectionHandlerlistener - the handlerpublic void run()
run in interface java.lang.Runnablerun in interface EndPointpublic void stop()
EndPoint
stop in interface EndPoint
public void update(int timeout)
throws java.io.IOException,
SerializationException
EndPoint
update in interface EndPointtimeout - the timeout
java.io.IOException - Signals that an I/O exception has occurred.
SerializationException - the serialization exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||