#import <Socket.h>
Inheritance diagram for OLUnixServerSocket:
Public Member Functions | |
(void) | - bindToAddress: |
Bind the socket to a local address. | |
(void) | - close |
Close the socket. | |
(OLSocketAddress *) | - localAddress |
Return the local address. | |
Static Public Member Functions | |
(id) | + socket |
Create and return a new socket. | |
(id) | + socketWithLocalUnixAddress: |
Create and return a new socket. | |
(id) | + socketWithLocalUnixAddress:queueLength: |
Create and return a new socket. | |
(id) | + socketWithQueueLength: |
Create and return a new socket. | |
Protected Attributes | |
OLUnixAddress * | localAddress |
The local address to which this server is bound. |
Unix domain sockets don't necessarily have anything to do with Unix; it's just a description of the address family. This class is capable of accepting connections from any Unix domain socket, include OLUnixClientSocket.
- (void) bindToAddress: | (OLSocketAddress *) | address |
Bind the socket to a local address.
After successfully sending this message the socket will be assigned the local address.
OLSocketException | if there is a problem binding the socket |
address | the address that should be assigned to the socket |
Reimplemented from OLServerSocket.
- (void) close |
Close the socket.
The socket will no longer be available for communication after receiving this message.
OLSocketException | if there is an error closing the socket |
Reimplemented from OLSocket.
Return the local address.
The local address is the address to which this socket is bound.
OLSocketException | if the socket is not bound to a local address |
Reimplemented from OLSocket.
+ (id) socket |
Create and return a new socket.
Create and return a new socket.
An unbound server socket is created that has a queue length of 50.
OLSocketException | if the socket cannot be created |
+ (id) socketWithLocalUnixAddress: | (OLUnixAddress *) | address |
Create and return a new 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.
OLSocketException | if the socket cannot be created and bound |
address | the address to which the socket should be bound |
+ (id) socketWithLocalUnixAddress: | (OLUnixAddress *) | address | ||
queueLength: | (unsigned) | qLen | ||
Create and return a new 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 qLen.
OLSocketException | if the socket cannot be created and bound |
address | the address to which the socket should be bound | |
qLen | the length of the server's queue |
+ (id) socketWithQueueLength: | (unsigned) | qLen |
Create and return a new socket.
Create and return a new socket.
An unbound server socket is created that has a queue length of qLen.
OLSocketException | if the socket cannot be created |
qLen | the length of the server's queue |
- (OLUnixAddress*) localAddress [protected] |
The local address to which this server is bound.
|