126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
* than one thread at the same time is not thread-safe, even if copy
* was called to create one "instance" for every thread!
*/
@interface OFSequencedPacketSocket: OFObject <OFCopying,
OFReadyForReadingObserving, OFReadyForWritingObserving>
{
of_socket_t _socket;
bool _blocking, _listening;
of_socket_address_t _remoteAddress;
id _Nullable _delegate;
OF_RESERVE_IVARS(4)
}
/*!
* @brief Whether the socket is in blocking mode.
*
* By default, a socket is in blocking mode.
*/
@property (nonatomic, getter=isBlocking) bool blocking;
/*!
* @brief Whether the socket is a listening socket.
*/
@property (readonly, nonatomic, getter=isListening) bool listening;
/*!
|
|
|
|
|
|
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
|
* than one thread at the same time is not thread-safe, even if copy
* was called to create one "instance" for every thread!
*/
@interface OFSequencedPacketSocket: OFObject <OFCopying,
OFReadyForReadingObserving, OFReadyForWritingObserving>
{
of_socket_t _socket;
bool _canBlock, _listening;
of_socket_address_t _remoteAddress;
id _Nullable _delegate;
OF_RESERVE_IVARS(4)
}
/*!
* @brief Whether the socket can block.
*
* By default, a socket can block.
*/
@property (nonatomic) bool canBlock;
/*!
* @brief Whether the socket is a listening socket.
*/
@property (readonly, nonatomic, getter=isListening) bool listening;
/*!
|