|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aigames.soccer.communication.ClientData
Data associated with accepted client.
Constructor Summary | |
ClientData(java.nio.channels.SocketChannel socket,
UserId userId)
Deafult constructor. |
Method Summary | |
void |
append(java.lang.String message)
Appends a line to the client message buffer. |
void |
clearBuffer(int position)
Clear processed part of the message buffer. |
java.lang.StringBuffer |
getBuffer()
Getter for client message buffer. |
java.nio.channels.SocketChannel |
getSocket()
Getter for socket channel. |
UserId |
getUserId()
Gettero for user id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClientData(java.nio.channels.SocketChannel socket, UserId userId)
socket
- socket channeluserId
- UserId objectMethod Detail |
public void append(java.lang.String message)
message
- string from a socketpublic java.lang.StringBuffer getBuffer()
public java.nio.channels.SocketChannel getSocket()
public UserId getUserId()
public void clearBuffer(int position)
position
- last processed byte of the buffer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |