OLInternetServerSocket Class Reference
[Sockets]

A server socket that communicates via the Internet. More...

#import <ObjectiveLib/Socket.h>

Inheritance diagram for OLInternetServerSocket:

Inheritance graph
[legend]
List of all members.

Static Public Member Functions

(id) + initialize
 Initialize the class when it is loaded into the runtime system.
(id) + socket
 Create and return a new socket.
(id) + socketWithLocalInternetAddress:
 Create and return a new socket.
(id) + socketWithLocalInternetAddress:queueLength:
 Create and return a new socket.
(id) + socketWithQueueLength:
 Create and return a new socket.

Detailed Description

A server socket that communicates via the Internet.

This is a specialized server that operates within the Internet address family. It is capable of accepting connections from any Internet address family socket, including OLInternetClientSocket.

See also:
OLInternetClientSocket, OLInternetAddress


Member Function Documentation

+ (id) initialize  

Initialize the class when it is loaded into the runtime system.

Please don't call this method.

+ (id) socket  

Create and return a new socket.

An unbound server socket is created that has a queue length of 50.

Exceptions:
OLSocketException if the socket cannot be created
Returns:
a reference to the newly created socket

+ (id) socketWithLocalInternetAddress: (OLInternetAddress *)  address  

Create and return a new socket.

A server socket is created that is bound to the local address and has a queue length of 50.

Exceptions:
OLSocketException if the socket cannot be created and bound
Parameters:
address the address to which the socket should be bound
Returns:
a reference to the newly created socket

+ (id) socketWithLocalInternetAddress: (OLInternetAddress *)  address
queueLength: (unsigned)  qLen 

Create and return a new socket.

A server socket is created that is bound to the local address and has a queue length of qLen.

Exceptions:
OLSocketException if the socket cannot be created and bound
Parameters:
address the address to which the socket should be bound
qLen the length of the server's queue
Returns:
a reference to the newly created socket

+ (id) socketWithQueueLength: (unsigned)  qLen  

Create and return a new socket.

An unbound server socket is created that has a queue length of qLen.

Exceptions:
OLSocketException if the socket cannot be created
Parameters:
qLen the length of the server's queue
Returns:
a reference to the newly created socket


The documentation for this class was generated from the following file:
ObjectiveLibGenerated Sun Apr 22 15:18:42 2007, © 2004-2007 Will Mason
SourceForge.net Logo