Difference between revisions of "Legacy:Functions/Networking/Socket"
From Spherical
(created) |
(No difference)
|
Latest revision as of 23:15, 1 June 2013
Socket object
- Sphere Socket object: Has the ability to send/receive data over a network.
- Socket.close(): Close the socket.
- Socket.getPendingReadSize(): Get size of next incoming data block in bytes.
- Socket.isConnected(): Find if the socket is connected or not.
- Socket.read(size): Read size number of bytes into a ByteArray from socket.
- Socket.write(data): Send a ByteArray into the socket.