Differences From Artifact [01c69a8231]:
- File src/OFTCPSocket.h — part of check-in [0d5b08e43e] at 2008-12-07 21:58:37 on branch trunk — Server support for OFTCPSocket. (user: js, size: 1582) [annotate] [blame] [check-ins using]
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 |