ObjFW
Classes | Typedefs
OFTCPSocket.h File Reference
#import "OFStreamSocket.h"
#import "OFRunLoop.h"

Go to the source code of this file.

Classes

class  OFTCPSocket
 A class which provides methods to create and use TCP sockets. More...
 

Typedefs

typedef void(^ OFTCPSocketAsyncConnectBlock) (id exception)
 A block which is called when the socket connected. More...
 
typedef void(^ OFTCPSocketConnectedHandler) (OFTCPSocket *socket, OFString *host, uint16_t port, id exception)
 A handler which is called when the socket connected. More...
 

Typedef Documentation

◆ OFTCPSocketAsyncConnectBlock

typedef void(^ OFTCPSocketAsyncConnectBlock) (id exception)

A block which is called when the socket connected.

Deprecated:
Use OFTCPSocketConnectedHandler instead.
Parameters
exceptionAn exception which occurred while connecting the socket or nil on success

◆ OFTCPSocketConnectedHandler

typedef void(^ OFTCPSocketConnectedHandler) (OFTCPSocket *socket, OFString *host, uint16_t port, id exception)

A handler which is called when the socket connected.

Parameters
socketThe socket which connected
hostThe host connected to
portThe port on the host connected to
exceptionAn exception which occurred while connecting the socket or nil on success