OLInternetClientSocket Class Reference
[Sockets]

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

#import <ObjectiveLib/Socket.h>

Inheritance diagram for OLInternetClientSocket:

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) + socketWithRemoteInternetAddress:
 Create and return a new socket.
(id) + socketWithRemoteInternetAddress:localAddress:
 Create and return a new socket.

Detailed Description

A client socket that communicates via the Internet.

This is a specialized client that operates within the Internet address family. It is capable of connecting to any Internet address family socket, including OLInternetServerSocket.

See also:
OLInternetServerSocket, 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.

The socket is unconnected.

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

+ (id) socketWithRemoteInternetAddress: (OLInternetAddress *)  remote  

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) socketWithRemoteInternetAddress: (OLInternetAddress *)  remote
localAddress: (OLInternetAddress *)  local 

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:25 2007, © 2004-2007 Will Mason
SourceForge.net Logo