124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
*
* @param host The host to connect to
* @param port The port on the host to connect to
* @param target The target on which to call the selector once the connection
* has been established
* @param selector The selector to call on the target. The signature must be
* `void (OFTCPSocket *socket, id context, id exception)`.
*/
- (void)asyncConnectToHost: (OFString *)host
port: (uint16_t)port
target: (id)target
selector: (SEL)selector
context: (nullable id)context;
|
>
|
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
*
* @param host The host to connect to
* @param port The port on the host to connect to
* @param target The target on which to call the selector once the connection
* has been established
* @param selector The selector to call on the target. The signature must be
* `void (OFTCPSocket *socket, id context, id exception)`.
* @param context A context object to pass along to the target
*/
- (void)asyncConnectToHost: (OFString *)host
port: (uint16_t)port
target: (id)target
selector: (SEL)selector
context: (nullable id)context;
|
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
* @param target The target on which to execute the selector when a new
* connection has been accepted. The method returns whether the
* next incoming connection should be accepted by the specified
* block as well.
* @param selector The selector to call on the target. The signature must be
* `bool (OFTCPSocket *socket, OFTCPSocket *acceptedSocket,
* id context, id exception)`.
*/
- (void)asyncAcceptWithTarget: (id)target
selector: (SEL)selector
context: (nullable id)context;
#ifdef OF_HAVE_BLOCKS
/*!
|
>
|
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
|
* @param target The target on which to execute the selector when a new
* connection has been accepted. The method returns whether the
* next incoming connection should be accepted by the specified
* block as well.
* @param selector The selector to call on the target. The signature must be
* `bool (OFTCPSocket *socket, OFTCPSocket *acceptedSocket,
* id context, id exception)`.
* @param context A context object to pass along to the target
*/
- (void)asyncAcceptWithTarget: (id)target
selector: (SEL)selector
context: (nullable id)context;
#ifdef OF_HAVE_BLOCKS
/*!
|