ObjectiveLib  1.0.0
Static Public Member Functions
OLInternetServerSocket Class Reference

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

(void) + 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

+ (void) 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:
OLSocketExceptionif the socket cannot be created
Returns:
a reference to the newly created socket

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:
OLSocketExceptionif the socket cannot be created and bound
Parameters:
addressthe 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:
OLSocketExceptionif the socket cannot be created and bound
Parameters:
addressthe address to which the socket should be bound
qLenthe 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:
OLSocketExceptionif the socket cannot be created
Parameters:
qLenthe 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 Sat Feb 15 2014 07:45:34, © 2004-2007 Will Mason