File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ typedef enum GCDAsyncSocketError GCDAsyncSocketError;
271
271
272
272
/* *
273
273
* Connects to the given address, specified as a sockaddr structure wrapped in a NSData object.
274
- * For example, a NSData object returned from NSNetservice 's addresses method.
274
+ * For example, a NSData object returned from NSNetService 's addresses method.
275
275
*
276
276
* If you have an existing struct sockaddr you can convert it to a NSData object like so:
277
277
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];
@@ -291,7 +291,7 @@ typedef enum GCDAsyncSocketError GCDAsyncSocketError;
291
291
* Connects to the given address, using the specified interface and timeout.
292
292
*
293
293
* The address is specified as a sockaddr structure wrapped in a NSData object.
294
- * For example, a NSData object returned from NSNetservice 's addresses method.
294
+ * For example, a NSData object returned from NSNetService 's addresses method.
295
295
*
296
296
* If you have an existing struct sockaddr you can convert it to a NSData object like so:
297
297
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ typedef enum AsyncSocketError AsyncSocketError;
267
267
268
268
/* *
269
269
* Connects to the given address, specified as a sockaddr structure wrapped in a NSData object.
270
- * For example, a NSData object returned from NSNetservice 's addresses method.
270
+ * For example, a NSData object returned from NSNetService 's addresses method.
271
271
*
272
272
* If you have an existing struct sockaddr you can convert it to a NSData object like so:
273
273
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];
Original file line number Diff line number Diff line change @@ -1519,7 +1519,7 @@ - (BOOL)connectToAddress:(NSData *)remoteAddr error:(NSError **)errPtr
1519
1519
* specifically in the onSocketWillConnect: method.
1520
1520
*
1521
1521
* Note: The NSData parameter is expected to be a sockaddr structure. For example, an NSData object returned from
1522
- * NSNetservice addresses method.
1522
+ * NSNetService addresses method.
1523
1523
* If you have an existing struct sockaddr you can convert it to an NSData object like so:
1524
1524
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];
1525
1525
* struct sockaddr *sa -> NSData *dsa = [NSData dataWithBytes:remoteAddr length:remoteAddr->sa_len];
You can’t perform that action at this time.
0 commit comments