Differences From Artifact [c9f6264550]:
- File src/OFTCPSocket.m — part of check-in [1496808b81] at 2009-01-24 15:24:49 on branch trunk — Adjust API to introduction of OFAutoreleasePool. (user: js, size: 6613) [annotate] [blame] [check-ins using]
To Artifact [bf7391c607]:
- File
src/OFTCPSocket.m
— part of check-in
[7feac9e596]
at
2009-01-24 20:28:31
on branch trunk
— [self alloc] isn't a good idea with the new API.
The reason is that a derived class, for example derived from OFArray,
would not return an OFArray when + arrayWithItemSize is called. (user: js, size: 6620) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
23 24 25 26 27 28 29 | #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif @implementation OFTCPSocket + tcpSocket { | | | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif @implementation OFTCPSocket + tcpSocket { return [[[OFTCPSocket alloc] init] autorelease]; } #ifdef _WIN32 + (void)initialize { WSADATA wsa; |
︙ | ︙ |