Differences From Artifact [f67659d08d]:
- File
src/OFUDPSocket.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 14519) [annotate] [blame] [check-ins using]
To Artifact [06ff6d8241]:
- File
src/OFUDPSocket.m
— part of check-in
[6b77a5dd8b]
at
2017-05-21 21:28:57
on branch trunk
— Prefix private methods with of_ instead of OF_
This matches Apple's style. (user: js, size: 14519) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
555 556 557 558 559 560 561 |
}
- (void)asyncReceiveIntoBuffer: (void *)buffer
length: (size_t)length
target: (id)target
selector: (SEL)selector
{
| | | | 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 |
}
- (void)asyncReceiveIntoBuffer: (void *)buffer
length: (size_t)length
target: (id)target
selector: (SEL)selector
{
[OFRunLoop of_addAsyncReceiveForUDPSocket: self
buffer: buffer
length: length
target: target
selector: selector];
}
#ifdef OF_HAVE_BLOCKS
- (void)asyncReceiveIntoBuffer: (void *)buffer
length: (size_t)length
block: (of_udp_socket_async_receive_block_t)block
{
[OFRunLoop of_addAsyncReceiveForUDPSocket: self
buffer: buffer
length: length
block: block];
}
#endif
- (void)sendBuffer: (const void *)buffer
|
| ︙ | ︙ | |||
608 609 610 611 612 613 614 |
requestedLength: length
errNo: of_socket_errno()];
#endif
}
- (void)cancelAsyncRequests
{
| | | 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 |
requestedLength: length
errNo: of_socket_errno()];
#endif
}
- (void)cancelAsyncRequests
{
[OFRunLoop of_cancelAsyncRequestsForObject: self];
}
- (int)fileDescriptorForReading
{
#ifndef OF_WINDOWS
return _socket;
#else
|
| ︙ | ︙ |