23OF_ASSUME_NONNULL_BEGIN
40 OF_DEPRECATED(ObjFW, 1, 2,
"Use OFSPXStreamSocketConnectedHandler instead");
53 uint32_t network,
const unsigned char node[_Nonnull IPX_NODE_LEN],
54 uint16_t port,
id _Nullable exception);
62@protocol OFSPXStreamSocketDelegate <OFStreamSocketDelegate>
75 didConnectToNetwork: (uint32_t)network
76 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
78 exception: (nullable
id)exception;
103@property OF_NULLABLE_PROPERTY (assign, nonatomic)
104 id <OFSPXStreamSocketDelegate> delegate;
116- (
void)connectToNetwork: (uint32_t)network
117 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
118 port: (uint16_t)port;
129- (
void)asyncConnectToNetwork: (uint32_t)network
130 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
131 port: (uint16_t)port;
144- (
void)asyncConnectToNetwork: (uint32_t)network
145 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
162- (void)asyncConnectToNetwork: (uint32_t)network
163 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
166 OF_DEPRECATED(ObjFW, 1, 2,
167 "Use -[asyncConnectToNetwork:node:port:handler:] instead");
179- (void)asyncConnectToNetwork: (uint32_t)network
180 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
199- (void)asyncConnectToNetwork: (uint32_t)network
200 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
204 OF_DEPRECATED(ObjFW, 1, 2,
205 "Use -[asyncConnectToNetwork:node:port:runLoopMode:handler:] instead");
219- (void)asyncConnectToNetwork: (uint32_t)network
220 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
239 bindToNetwork: (uint32_t)network
240 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
241 port: (uint16_t)port;
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.
Definition OFSPXStreamSocket.h:52
void(^ OFSPXStreamSocketAsyncConnectBlock)(id exception)
A block which is called when the socket connected.
Definition OFSPXStreamSocket.h:39
A class for storing constant strings using the @"" literal.
Definition OFConstantString.h:42
A class which provides methods to create and use SPX stream sockets.
Definition OFSPXStreamSocket.h:93
A class which provides methods to create and use stream sockets.
Definition OFStreamSocket.h:88
A class for handling strings.
Definition OFString.h:143
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:189