back to index
TCPSocket
Inheritance
Object -> TCPSocket
Properties
Methods
int open (IPAddress _adr) - open a connection to the given host
close () - close the connection
IPAddress getPeerAddress () - get address of connection peer
TCPSocket accept () - accept a new connection
int send (Buffer _b, int _len) - send _len bytes from Buffer (starting at _b.offset). len==0 => _b.size
int sendString (String _s) - send a String message
int recv (Buffer _b, int _max) - receive _max bytes to Buffer; return # bytes recv'd
int socketReady () - check whether socket has new data available
back to index