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


6.18.2 Sockets.ServerSocket class: instance creation

defaultQueueSize

Answer the default length of the queue for pending connections. When the queue fills, new clients attempting to connect fail until the server has sent #accept to accept a connection from the queue.

port: anInteger

Answer a new ServerSocket serving on any local address, on the given port, with a pending connections queue of the default length.

port: anInteger bindTo: ipAddress

Answer a new ServerSocket serving on the given address and port, with a pending connections queue of the default length.

port: anInteger queueSize: backlog

Answer a new ServerSocket serving on any local address, on the given port, with a pending connections queue of the given length.

port: anInteger queueSize: backlog bindTo: ipAddress

Answer a new ServerSocket serving on the given address and port, and with a pending connections queue of the given length.

queueSize: backlog

Answer a new ServerSocket serving on any local address and port, with a pending connections queue of the given length.

queueSize: backlog bindTo: ipAddress

Answer a new ServerSocket serving on the given local address, and on any port, with a pending connections queue of the given length.