Chatserver user class — part of the chatserver example.
ibuffer |
[R] |
Object attribute
|
obuffer |
[R] |
Object attribute
|
server |
[R] |
Object attribute
|
socket |
[R] |
Object attribute
|
Create and return a user object which will use the specified
socket and pollObj.
Return a stringified version of the user
Add the specified string to the user’s output buffer and turn on
output events.
This method is also aliased as
<<
Write as much of the output buffer to the socket as possible, and return
the number of bytes remaining to be sent.
Write a prompt to the user
Read at most MTU bytes from the socket and append them to the input buffer.
Split off any complete lines (one that end with EOL) and return them as an
Array of Strings.
Handle poll events on the socket
Returns true if the user is still connected