Next: , Previous: , Up: Sockets.AbstractSocket   [Index]


6.1.5 Sockets.AbstractSocket: accessing

address

Answer an IP address that is of common interest (this can be either the local or the remote address, according to the definition in the subclass).

available

Answer whether there is data available on the socket. Same as #canRead, present for backwards compatibility.

canRead

Answer whether there is data available on the socket.

canWrite

Answer whether there is free space in the socket’s write buffer.

close

Close the socket represented by the receiver.

flush

Flush any buffers used by the receiver.

isOpen

Answer whether the connection between the receiver and the remote endpoint is still alive.

isPeerAlive

Answer whether the connection with the peer remote machine is still valid.

localAddress

Answer the local IP address of the socket.

localPort

Answer the local IP port of the socket.

port

Answer an IP port that is of common interest (this can be the port for either the local or remote endpoint, according to the definitions in the subclass

remoteAddress

Answer the IP address of the socket’s remote endpoint.

remotePort

Answer the IP port of the socket’s remote endpoint.