ObjFW  Diff

Differences From Artifact [01c69a8231]:

To Artifact [dc54bd8b6a]:

  • File src/OFTCPSocket.h — part of check-in [c83137e7cd] at 2008-12-11 13:43:35 on branch trunk — Remove - close from OFStream protocol.
    The reason is that closing a file isn't too useful, because an OFFile
    object can't be reused, whereas an OFTCPSocket can. So only the
    OFTCPSocket should have closed. Plus, we don't need to handle the case
    that someone tried to read from / write to a closed OFFile. (user: js, size: 1622) [annotate] [blame] [check-ins using]

72
73
74
75
76
77
78





79
 */
- listen;

/**
 * Accept an incoming connection.
 */
- (OFTCPSocket*)accept;





@end







>
>
>
>
>

72
73
74
75
76
77
78
79
80
81
82
83
84
 */
- listen;

/**
 * Accept an incoming connection.
 */
- (OFTCPSocket*)accept;

/**
 * Closes the socket.
 */
- close;
@end