ObjFW
Loading...
Searching...
No Matches
OFSPXStreamSocket.h File Reference
import "OFStreamSocket.h"
import "OFRunLoop.h"

Go to the source code of this file.

Classes

protocol  <OFSPXStreamSocketDelegate>
 
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.
 
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.
 

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