ObjectiveLib  1.0.0
Public Member Functions | Static Public Member Functions
OLUnixClientSocket Class Reference

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:
OLSocketExceptionif there is a problem binding the socket
Parameters:
addressthe 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:
OLSocketExceptionif the socket cannot be created
Returns:
a reference to the newly created socket

Create and return a new socket.

Create and return a new socket.

The socket is immediately connected to the address remote.

Exceptions:
OLSocketExceptionif the socket cannot be created and connected
Parameters:
remotethe 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:
OLSocketExceptionif the socket cannot be created and connected
Parameters:
remotethe remote address to which to connect
localthe 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 Sat Feb 15 2014 07:45:35, © 2004-2007 Will Mason