- :string
receive
receive line of data from selected socket
Parameters
receive origin :socket
Attributes
size | :integer | set maximum size of received data |
timeout | :integer | set timeout (in milliseconds) |
Returns
Examples
copyserver: listen 18966 print "started server connection..." client: accept server print ["accepted incoming connection from:" client] keepGoing: true while [keepGoing][ message: receive client print ["received message:" message] if message = "exit" [ unplug client keepGoing: false ] ] unplug server