Socket

A TCP socket

Socket.close

Closes this socket
overload 1:
Socket:close()
Method Property Fluent Description Representation
Return Value nil

Socket.getHost

Returns host this socket is connected to
overload 1:
Socket:getHost()
Method Property Fluent Description Representation
Return Value a String

Socket.getPort

Returns port this socket is connected to
overload 1:
Socket:getPort()
Method Property Fluent Description Representation
Return Value an Integer

Socket.getInputStream

Returns input stream bound to this socket
overload 1:
Socket:getInputStream()
Method Property Fluent Description Representation
Return Value an InputStream

Socket.getOutputStream

Returns output stream bound to this socket
overload 1:
Socket:getOutputStream()
Method Property Fluent Description Representation
Return Value an OutputStream

Socket.isConnected

Checks if this socket is connected
overload 1:
Socket:isConnected()
Method Property Fluent Description Representation
Return Value a Boolean

Socket.isClosed

Checks if this socket is closed
overload 1:
Socket:isClosed()
Method Property Fluent Description Representation
Return Value a Boolean
a a