34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
* @param exception An exception which occurred while connecting the socket or
* `nil` on success
*/
typedef void (^OFSPXStreamSocketAsyncConnectBlock)(id _Nullable exception);
#endif
/**
* @protocol OFSPXStreamSocketDelegate OFSPXStreamSocket.h \
* ObjFW/OFSPXStreamSocket.h
*
* A delegate for OFSPXStreamSocket.
*/
@protocol OFSPXStreamSocketDelegate <OFStreamSocketDelegate>
@optional
/**
* @brief A method which is called when a socket connected.
|
|
<
|
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
* @param exception An exception which occurred while connecting the socket or
* `nil` on success
*/
typedef void (^OFSPXStreamSocketAsyncConnectBlock)(id _Nullable exception);
#endif
/**
* @protocol OFSPXStreamSocketDelegate OFSPXStreamSocket.h ObjFW/ObjFW.h
*
* A delegate for OFSPXStreamSocket.
*/
@protocol OFSPXStreamSocketDelegate <OFStreamSocketDelegate>
@optional
/**
* @brief A method which is called when a socket connected.
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
didConnectToNetwork: (uint32_t)network
node: (const unsigned char [_Nonnull IPX_NODE_LEN])node
port: (uint16_t)port
exception: (nullable id)exception;
@end
/**
* @class OFSPXStreamSocket OFSPXStreamSocket.h ObjFW/OFSPXStreamSocket.h
*
* @brief A class which provides methods to create and use SPX stream sockets.
*
* @note If you want to use SPX in message mode instead of in streaming mode,
* use @ref OFSPXSocket instead.
*
* To connect to a server, create a socket and connect it.
|
|
|
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
didConnectToNetwork: (uint32_t)network
node: (const unsigned char [_Nonnull IPX_NODE_LEN])node
port: (uint16_t)port
exception: (nullable id)exception;
@end
/**
* @class OFSPXStreamSocket OFSPXStreamSocket.h ObjFW/ObjFW.h
*
* @brief A class which provides methods to create and use SPX stream sockets.
*
* @note If you want to use SPX in message mode instead of in streaming mode,
* use @ref OFSPXSocket instead.
*
* To connect to a server, create a socket and connect it.
|