Differences From Artifact [43965236bf]:
- File
src/OFTCPSocket.m
— part of check-in
[12fbe85aab]
at
2015-05-03 10:16:23
on branch trunk
— OFTCPSocket: Add -[setTCPNoDelayEnabled:]
This also adds -[isTCPNoDelayEnabled] and -[isKeepAliveEnabled],
together with OFGetOptionFailedException to indiciate failure to
retrieve the current value of the option. (user: js, size: 13902) [annotate] [blame] [check-ins using]
To Artifact [12ce6e353d]:
- File src/OFTCPSocket.m — part of check-in [ff759684e2] at 2015-05-06 20:18:47 on branch trunk — OFNotConnectedException -> OFNotOpenException (user: js, size: 13887) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
37 38 39 40 41 42 43 | #import "OFAcceptFailedException.h" #import "OFAlreadyConnectedException.h" #import "OFBindFailedException.h" #import "OFConnectionFailedException.h" #import "OFGetOptionFailedException.h" #import "OFInvalidArgumentException.h" #import "OFListenFailedException.h" | < > | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | #import "OFAcceptFailedException.h" #import "OFAlreadyConnectedException.h" #import "OFBindFailedException.h" #import "OFConnectionFailedException.h" #import "OFGetOptionFailedException.h" #import "OFInvalidArgumentException.h" #import "OFListenFailedException.h" #import "OFNotImplementedException.h" #import "OFNotOpenException.h" #import "OFOutOfMemoryException.h" #import "OFSetOptionFailedException.h" #import "socket.h" #import "socket_helpers.h" #import "resolver.h" |
︙ | ︙ | |||
479 480 481 482 483 484 485 | { [self listenWithBackLog: SOMAXCONN]; } - (void)listenWithBackLog: (int)backLog { if (_socket == INVALID_SOCKET) | | | 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | { [self listenWithBackLog: SOMAXCONN]; } - (void)listenWithBackLog: (int)backLog { if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; if (listen(_socket, backLog) == -1) @throw [OFListenFailedException exceptionWithSocket: self backLog: backLog errNo: of_socket_errno()]; |
︙ | ︙ | |||
564 565 566 567 568 569 570 | #endif - (OFString*)remoteAddress { OFString *ret; if (_socket == INVALID_SOCKET) | | | 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 | #endif - (OFString*)remoteAddress { OFString *ret; if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; if (_address == NULL) @throw [OFInvalidArgumentException exception]; of_address_to_string_and_port(_address, _addressLength, &ret, NULL); return ret; |
︙ | ︙ |