#import <OFTCPSocket.h>
Public Member Functions | |
(id) | - connectToService:onNode: |
(id) | - bindService:onNode:withFamily: |
(id) | - listenWithBackLog: |
(id) | - listen |
(OFSocket *) | - accept |
(id) | - enableKeepAlives: |
(id) | - close |
The OFTCPSocket class provides functions to create and use sockets.
- (OFSocket *) accept |
Accept an incoming connection.
Reimplemented from OFSocket.
Bind socket on the specified node and service.
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.
Connect the OFTCPSocket to the specified destination.
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.
backlog | Maximum length for the queue of pending connections. |
Reimplemented from OFSocket.