|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Communication
The class Communication
handles UDP network traffic from/to the rcssserver.
Constructor Summary | |
Communication(java.lang.String serverName,
int serverPort)
Creates a new Communication instance. |
Method Summary | |
java.lang.String |
receive()
Receives a message from the server |
void |
send(java.lang.String message)
Sends a String to the server |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Communication(java.lang.String serverName, int serverPort)
Communication
instance.serverName
- The address of the server specified by its name or its IP addressserverPort
- The port of the serverMethod Detail |
public void send(java.lang.String message)
String
to the servermessage
- a String
value containing the message which
has to be sent to the server.public java.lang.String receive()
String
containing the message read from the socket
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |