ObjFW  Diff

Differences From Artifact [a02bc73f70]:

To Artifact [efdb457766]:


27
28
29
30
31
32
33
34
35
36
37
38
39


40
41
42
43
44
45
46
@implementation OFTCPSocket
+ tcpSocket
{
	return [[[OFTCPSocket alloc] init] autorelease];
}

#ifdef _WIN32
+ (void)initialize
{
	WSADATA wsa;

	if (WSAStartup(MAKEWORD(2, 0), &wsa))
		@throw [OFInitializationFailedException newWithClass: self];


}
#endif

- init
{
	if ((self = [super init])) {
		sock = INVALID_SOCKET;







|





>
>







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@implementation OFTCPSocket
+ tcpSocket
{
	return [[[OFTCPSocket alloc] init] autorelease];
}

#ifdef _WIN32
+ initialize
{
	WSADATA wsa;

	if (WSAStartup(MAKEWORD(2, 0), &wsa))
		@throw [OFInitializationFailedException newWithClass: self];

	return self;
}
#endif

- init
{
	if ((self = [super init])) {
		sock = INVALID_SOCKET;