108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
-
+
-
+
-
+
-
+
-
+
-
+
-
+
|
* than one thread at the same time is not thread-safe, even if copy
* was called to create one "instance" for every thread!
*/
@interface OFDatagramSocket: OFObject <OFCopying, OFReadyForReadingObserving,
OFReadyForWritingObserving>
{
of_socket_t _socket;
bool _blocking;
bool _canBlock;
#ifdef OF_WII
bool _broadcastAllowed;
bool _canSendToBroadcastAddresses;
#endif
id <OFDatagramSocketDelegate> _Nullable _delegate;
OF_RESERVE_IVARS(4)
}
/*!
* @brief Whether the socket is in blocking mode.
* @brief Whether the socket can block.
*
* By default, a socket is in blocking mode.
* By default, a socket can block.
*/
@property (nonatomic, getter=isBlocking) bool blocking;
@property (nonatomic) bool canBlock;
/*!
* @brief Whether the socket is allowed to send to broadcast addresses.
* @brief Whether the socket can send to broadcast addresses.
*/
@property (nonatomic, getter=isBroadcastAllowed) bool broadcastAllowed;
@property (nonatomic) bool canSendToBroadcastAddresses;
/*!
* @brief The delegate for asynchronous operations on the socket.
*
* @note The delegate is retained for as long as asynchronous operations are
* still ongoing.
*/
|