OFTCPSocket Class Reference

#import <OFTCPSocket.h>

Inheritance diagram for OFTCPSocket:
OFSocket OFStream OFObject

List of all members.

Public Member Functions

(id) - connectToService:onNode:
(id) - bindService:onNode:withFamily:
(id) - listenWithBackLog:
(id) - listen
(OFSocket *) - accept
(id) - enableKeepAlives:
(id) - close

Detailed Description

The OFTCPSocket class provides functions to create and use sockets.


Member Function Documentation

- (OFSocket *) accept  

Accept an incoming connection.

Returns:
An autoreleased OFTCPSocket for the accepted connection.

Reimplemented from OFSocket.

- (id) bindService: (OFString*)  service
onNode: (OFString*)  node
withFamily: (int)  family 

Bind socket on the specified node and service.

Parameters:
service The service to bind
node The node to bind to
family The family to use (AF_INET or AF_INET6)

Reimplemented from OFSocket.

- (id) close  

Closes the socket.

Reimplemented from OFSocket.

- (id) connectToService: (OFString*)  service
onNode: (OFString*)  node 

Connect the OFTCPSocket to the specified destination.

Parameters:
service The service on the node to connect to
node The node to connect to

Reimplemented from OFSocket.

- (id) enableKeepAlives: (BOOL)  enable  

Enable or disable keep alives for the connection.

Reimplemented from OFSocket.

- (id) listen  

Listen on the socket.

Reimplemented from OFSocket.

- (id) listenWithBackLog: (int)  backlog  

Listen on the socket.

Parameters:
backlog Maximum length for the queue of pending connections.

Reimplemented from OFSocket.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on Thu Dec 24 11:10:01 2009 for ObjFW by  doxygen 1.6.1