/apidoc/Titanium/Network/TCPSocket.yml
YAML | 19 lines | 19 code | 0 blank | 0 comment | 0 complexity | 7223c6399bd208b7091339230093104e MD5 | raw file
Possible License(s): Apache-2.0
- ---
- namespace: Titanium.Network.TCPSocket
- type: object
- description: An object representing a TCP client socket connection.
- events:
- - name: connect
- description: The socket is now connected to the remote host.
- - name: close
- description: Connection has been closed.
- - name: data
- description: "Data has arrived to the socket and is provided within a buffer.
- Example: socket.on('data', function (data) { })"
- - name: end
- description: Signals the remote host will be sending no more data.
- - name: timeout
- description: An operation on the socket has timed out.
- - name: drain
- description: All pending data has been written to the socket.
- since: 0.2.0