ObjFW  Diff

Differences From Artifact [987460de9d]:

To Artifact [fbc78fae5c]:


142
143
144
145
146
147
148
149





150
151
152
153
154
155
156
	if (ioctlsocket(sock, FIONBIO, &v) == SOCKET_ERROR)
		@throw [OFSetOptionFailedException
		    exceptionWithClass: [self class]
				stream: self];
}
#endif

- (int)fileDescriptor





{
	return sock;
}

- (void)close
{
	if (sock == INVALID_SOCKET)







|
>
>
>
>
>







142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
	if (ioctlsocket(sock, FIONBIO, &v) == SOCKET_ERROR)
		@throw [OFSetOptionFailedException
		    exceptionWithClass: [self class]
				stream: self];
}
#endif

- (int)fileDescriptorForReading
{
	return sock;
}

- (int)fileDescriptorForWriting
{
	return sock;
}

- (void)close
{
	if (sock == INVALID_SOCKET)