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


6.18.3 Sockets.ServerSocket: accessing

accept

Accept a new connection and create a new instance of Socket if there is one, else answer nil.

accept: socketClass

Accept a new connection and create a new instance of socketClass if there is one, else answer nil. This is usually needed only to create DatagramSockets.

address

Answer the local address

port

Answer the local port (the port that the passive socket is listening on).

primAccept: socketClass

Accept a new connection and create a new instance of Socket if there is one, else fail.

waitForConnection

Wait for a connection to be available, and suspend the currently executing process in the meanwhile.