Differences From Artifact [1175a4c331]:
- File src/OFTCPSocket.m — part of check-in [d1a5065e69] at 2008-12-07 10:24:23 on branch trunk — OFSocket -> OFTCPSocket. (user: js, size: 2119) [annotate] [blame] [check-ins using]
To Artifact [ed0fb6187c]:
- File src/OFTCPSocket.m — part of check-in [657fae20a4] at 2008-12-07 10:35:12 on branch trunk — Add - close to OFStream. (user: js, size: 2212) [annotate] [blame] [check-ins using]
︙ | |||
115 116 117 118 119 120 121 122 | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | + + + + + + + + + + | } - (size_t)writeCString: (const char*)str { return [self writeNBytes: strlen(str) fromBuffer: (const uint8_t*)str]; } - close { if (sock < 0) { /* FIXME: Throw exception */ return nil; } return self; } @end |