- <init>
Constructor that takes an already created socket.
- close
Closes the socket.
- isOpen
Checks whether the socket is connected.
- getInputStream
- getOutputStream
- getSocket
Returns a reference to the underlying socket.
- getSocketChannel
Returns a reference to the underlying SocketChannel (for NIO).
- initSocket
Initializes the socket object
- openChannel
Connects the socket, creating a new socket object if necessary.
- registerSelector
- setProperties
Sets the socket properties like timeout, keepalive, buffer sizes.
- setTimeout