Legacy:Functions/Networking/Socket
From Spherical
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.