23OF_ASSUME_NONNULL_BEGIN
40 OF_DEPRECATED(ObjFW, 1, 2,
"Use OFSPXSocketConnectedHandler instead");
53 uint32_t network,
const unsigned char node[_Nonnull IPX_NODE_LEN],
54 uint16_t port,
id _Nullable exception);
62@protocol OFSPXSocketDelegate <OFSequencedPacketSocketDelegate>
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 <OFSPXSocketDelegate> delegate;
116- (
void)connectToNetwork: (uint32_t)network
117 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
118 port: (uint16_t)port;
128- (
void)asyncConnectToNetwork: (uint32_t)network
129 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
130 port: (uint16_t)port;
142- (
void)asyncConnectToNetwork: (uint32_t)network
143 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
159- (void)asyncConnectToNetwork: (uint32_t)network
160 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
163 OF_DEPRECATED(ObjFW, 1, 2,
164 "Use -[asyncConnectToNetwork:node:port:handler:] instead");
175- (void)asyncConnectToNetwork: (uint32_t)network
176 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
194- (void)asyncConnectToNetwork: (uint32_t)network
195 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
199 OF_DEPRECATED(ObjFW, 1, 2,
200 "Use -[asyncConnectToNetwork:node:port:runLoopMode:handler:] instead");
213- (void)asyncConnectToNetwork: (uint32_t)network
214 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
233 bindToNetwork: (uint32_t)network
234 node: (const
unsigned char [_Nonnull IPX_NODE_LEN])node
235 port: (uint16_t)port;
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.
Definition OFSPXSocket.h:52
void(^ OFSPXSocketAsyncConnectBlock)(id exception)
A block which is called when the socket connected.
Definition OFSPXSocket.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 sockets.
Definition OFSPXSocket.h:93
A base class for sequenced packet sockets.
Definition OFSequencedPacketSocket.h:184
A class for handling strings.
Definition OFString.h:143
A struct which represents a host / port pair for a socket.
Definition OFSocket.h:189