Class | User |
In: |
examples/chatserver.rb
|
Parent: | Object |
Chatserver user class — part of the chatserver example.
MTU | = | 4096 |
CR | = | "\015" |
LF | = | "\012" |
EOL | = | CR + LF |
PROMPT | = | 'chat> ' |
ibuffer | [R] | Object attribute |
obuffer | [R] | Object attribute |
server | [R] | Object attribute |
socket | [R] | Object attribute |
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.