Differences From Artifact [7d0fea78bc]:
- File src/OFTCPSocket.m — part of check-in [f1b749d113] at 2009-01-05 00:59:06 on branch trunk — Update copyright. (user: js, size: 6553) [annotate] [blame] [check-ins using]
To 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]
︙ | |||
21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + + + + + | #import "OFExceptions.h" #ifndef INVALID_SOCKET #define INVALID_SOCKET -1 #endif @implementation OFTCPSocket + tcpSocket { return [[[self alloc] init] autorelease]; } #ifdef _WIN32 + (void)initialize { WSADATA wsa; if (WSAStartup(MAKEWORD(2, 0), &wsa)) @throw [OFInitializationFailedException newWithClass: self]; |
︙ |