ObjFW  Diff

Differences From Artifact [ea3cfe401f]:

To Artifact [1ec7691203]:


313
314
315
316
317
318
319
320

321
322
323
324
325
326

327
328
329

330
331
332
333
334
335
336
313
314
315
316
317
318
319

320
321
322
323
324
325

326
327
328

329
330
331
332
333
334
335
336







-
+





-
+


-
+







	sock = INVALID_SOCKET;
	@throw [OFBindFailedException newWithClass: isa
					    socket: self
					      host: host
					      port: port];
}

- (void)listenWithBackLog: (int)backlog
- (void)listenWithBackLog: (int)backLog
{
	if (sock == INVALID_SOCKET)
		@throw [OFNotConnectedException newWithClass: isa
						      socket: self];

	if (listen(sock, backlog) == -1)
	if (listen(sock, backLog) == -1)
		@throw [OFListenFailedException newWithClass: isa
						      socket: self
						     backLog: backlog];
						     backLog: backLog];

	isListening = YES;
}

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