125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
* was called to create one "instance" for every thread!
*/
@interface OFSequencedPacketSocket: OFObject <OFCopying,
OFReadyForReadingObserving, OFReadyForWritingObserving>
{
OFSocketHandle _socket;
bool _canBlock, _listening;
of_socket_address_t _remoteAddress;
id _Nullable _delegate;
OF_RESERVE_IVARS(OFSequencedPacketSocket, 4)
}
/**
* @brief Whether the socket can block.
*
|
|
|
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
* was called to create one "instance" for every thread!
*/
@interface OFSequencedPacketSocket: OFObject <OFCopying,
OFReadyForReadingObserving, OFReadyForWritingObserving>
{
OFSocketHandle _socket;
bool _canBlock, _listening;
OFSocketAddress _remoteAddress;
id _Nullable _delegate;
OF_RESERVE_IVARS(OFSequencedPacketSocket, 4)
}
/**
* @brief Whether the socket can block.
*
|
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
@property (readonly, nonatomic, getter=isListening) bool listening;
/**
* @brief The remote address.
*
* @note This only works for accepted sockets!
*/
@property (readonly, nonatomic) const of_socket_address_t *remoteAddress;
/**
* @brief The delegate for asynchronous operations on the socket.
*
* @note The delegate is retained for as long as asynchronous operations are
* still ongoing.
*/
|
|
|
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
|
@property (readonly, nonatomic, getter=isListening) bool listening;
/**
* @brief The remote address.
*
* @note This only works for accepted sockets!
*/
@property (readonly, nonatomic) const OFSocketAddress *remoteAddress;
/**
* @brief The delegate for asynchronous operations on the socket.
*
* @note The delegate is retained for as long as asynchronous operations are
* still ongoing.
*/
|