OLUnixClientSocket Class Reference
[Sockets]

A client socket that communciates in the Unix domain. More...

#import <ObjectiveLib/Socket.h>

Inheritance diagram for OLUnixClientSocket:

Inheritance graph
[legend]
List of all members.

Public Member Functions

(void) - bindToAddress:
 Bind the socket to a local address.

Static Public Member Functions

(id) + socket
 Create and return a new socket.
(id) + socketWithRemoteUnixAddress:
 Create and return a new socket.
(id) + socketWithRemoteUnixAddress:localAddress:
 Create and return a new socket.

Detailed Description

A client socket that communciates in the Unix domain.

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 connecting to Unix domain socket, including OLUnixServerSocket.

See also:
OLUnixServerSocket, OLUnixAddress


Member Function Documentation

- (void) bindToAddress: (OLSocketAddress *)  address  

Bind the socket to a local address.

After successfully sending this message the socket will be assigned the local address.

Exceptions:
OLSocketException if there is a problem binding the socket
Parameters:
address the address that should be assigned to the socket

Reimplemented from OLBindableSocket.

+ (id) socket  

Create and return a new socket.

Create and return a new socket.

The socket is unconnected.

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

+ (id) socketWithRemoteUnixAddress: (OLUnixAddress *)  remote  

Create and return a new socket.

Create and return a new socket.

The socket is immediately connected to the address remote.

Exceptions:
OLSocketException if the socket cannot be created and connected
Parameters:
remote the remote address to which to connect
Returns:
a reference to the newly created socket

+ (id) socketWithRemoteUnixAddress: (OLUnixAddress *)  remote
localAddress: (OLUnixAddress *)  local 

Create and return a new socket.

Create and return a new socket.

The socket is immediately bound to the address local and connected to the address remote.

Exceptions:
OLSocketException if the socket cannot be created and connected
Parameters:
remote the remote address to which to connect
local the local address to which to bind
Returns:
a reference to the newly created socket


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