61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
* connection
*/
typedef bool (^OFSequencedPacketSocketAsyncAcceptBlock)(
OFSequencedPacketSocket *acceptedSocket, id _Nullable exception);
#endif
/**
* @protocol OFSequencedPacketSocketDelegate OFSequencedPacketSocket.h \
* ObjFW/OFSequencedPacketSocket.h
*
* @brief A delegate for OFSequencedPacketSocket.
*/
@protocol OFSequencedPacketSocketDelegate <OFObject>
@optional
/**
* @brief This method is called when a packet has been received.
|
|
|
|
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
* connection
*/
typedef bool (^OFSequencedPacketSocketAsyncAcceptBlock)(
OFSequencedPacketSocket *acceptedSocket, id _Nullable exception);
#endif
/**
* @protocol OFSequencedPacketSocketDelegate OFSequencedPacketSocket.h
* ObjFW/ObjFW.h
*
* @brief A delegate for OFSequencedPacketSocket.
*/
@protocol OFSequencedPacketSocketDelegate <OFObject>
@optional
/**
* @brief This method is called when a packet has been received.
|
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
*/
- (bool)socket: (OFSequencedPacketSocket *)socket
didAcceptSocket: (OFSequencedPacketSocket *)acceptedSocket
exception: (nullable id)exception;
@end
/**
* @class OFSequencedPacketSocket OFSequencedPacketSocket.h \
* ObjFW/OFSequencedPacketSocket.h
*
* @brief A base class for sequenced packet sockets.
*
* @warning Even though the OFCopying protocol is implemented, it does *not*
* return an independent copy of the socket, but instead retains it.
* This is so that the socket can be used as a key for a dictionary,
* so context can be associated with a socket. Using a socket in more
|
|
|
|
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
*/
- (bool)socket: (OFSequencedPacketSocket *)socket
didAcceptSocket: (OFSequencedPacketSocket *)acceptedSocket
exception: (nullable id)exception;
@end
/**
* @class OFSequencedPacketSocket OFSequencedPacketSocket.h
* ObjFW/ObjFW.h
*
* @brief A base class for sequenced packet sockets.
*
* @warning Even though the OFCopying protocol is implemented, it does *not*
* return an independent copy of the socket, but instead retains it.
* This is so that the socket can be used as a key for a dictionary,
* so context can be associated with a socket. Using a socket in more
|