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

Go to the source code of this file.

Classes

class  OFSPXStreamSocket
 A class which provides methods to create and use SPX stream sockets. More...
 

Typedefs

typedef void(^ OFSPXStreamSocketAsyncConnectBlock) (id exception)
 A block which is called when the socket connected. More...
 
typedef void(^ OFSPXStreamSocketConnectedHandler) (OFSPXStreamSocket *socket, uint32_t network, const unsigned char node[IPX_NODE_LEN], uint16_t port, id exception)
 A handler which is called when the socket connected. More...
 

Typedef Documentation

◆ OFSPXStreamSocketAsyncConnectBlock

typedef void(^ OFSPXStreamSocketAsyncConnectBlock) (id exception)

A block which is called when the socket connected.

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

◆ OFSPXStreamSocketConnectedHandler

typedef void(^ OFSPXStreamSocketConnectedHandler) (OFSPXStreamSocket *socket, uint32_t network, const unsigned char node[IPX_NODE_LEN], uint16_t port, id exception)

A handler which is called when the socket connected.

Parameters
socketThe socket which connected
networkThe network of the node the socket connected to
nodeThe node the socket connected to
portThe port of the node to which the socket connected
exceptionAn exception which occurred while connecting the socket or nil on success