ObjectiveLib  1.0.0
Static Public Member Functions
OLInternetClientSocket Class Reference

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:
OLSocketExceptionif the socket cannot be created
Returns:
a reference to the newly created 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) 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:
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:34, © 2004-2007 Will Mason