ObjFW
Loading...
Searching...
No Matches
OFSPXSocket.h File Reference

Go to the source code of this file.

Classes

protocol  <OFSPXSocketDelegate>
 
class  OFSPXSocket
 A class which provides methods to create and use SPX sockets. More...
 

Typedefs

typedef void(^ OFSPXSocketAsyncConnectBlock) (id exception)
 A block which is called when the socket connected.
 
typedef void(^ OFSPXSocketConnectedHandler) (OFSPXSocket *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

◆ OFSPXSocketAsyncConnectBlock

typedef void(^ OFSPXSocketAsyncConnectBlock) (id exception)

A block which is called when the socket connected.

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

◆ OFSPXSocketConnectedHandler

typedef void(^ OFSPXSocketConnectedHandler) (OFSPXSocket *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