Differences From Artifact [e5e0123628]:
- File
src/OFTCPSocket.m
— part of check-in
[273d5b90f8]
at
2010-01-22 18:40:04
on branch trunk
— Clean up OFStream and OFSocket interface.
This allows better compile-time checks. (user: js, size: 7696) [annotate] [blame] [check-ins using]
To Artifact [5ad68e30bb]:
- File src/OFTCPSocket.m — part of check-in [fe6787bc79] at 2010-01-30 13:33:40 on branch trunk — Move some stuff from OFSocket to OFTCPSocket. (user: js, size: 7785) [annotate] [blame] [check-ins using]
︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | + + + + + + + + + + | #if defined(OF_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO) + (void)initialize { if (self == [OFTCPSocket class]) mutex = [[OFMutex alloc] init]; } #endif - init { self = [super init]; sock = INVALID_SOCKET; saddr = NULL; return self; } - (void)dealloc { if (sock != INVALID_SOCKET) close(sock); [super dealloc]; |
︙ |