ObjFW  Diff

Differences From Artifact [cc02b954ab]:

To Artifact [596449d526]:


506
507
508
509
510
511
512
513

514
515
516

517
518
519
520
521

522
523
524

525
526
527
528
529
530
531
506
507
508
509
510
511
512

513
514
515

516
517
518
519
520

521
522
523

524
525
526
527
528
529
530
531







-
+


-
+




-
+


-
+







						   port: port
						 socket: self
						  errNo: EAFNOSUPPORT];
}

- (void)listen
{
	[self listenWithBackLog: SOMAXCONN];
	[self listenWithBacklog: SOMAXCONN];
}

- (void)listenWithBackLog: (int)backLog
- (void)listenWithBacklog: (int)backlog
{
	if (_socket == INVALID_SOCKET)
		@throw [OFNotOpenException exceptionWithObject: self];

	if (listen(_socket, backLog) == -1)
	if (listen(_socket, backlog) == -1)
		@throw [OFListenFailedException
		    exceptionWithSocket: self
				backLog: backLog
				backlog: backlog
				  errNo: of_socket_errno()];

	_listening = true;
}

- (instancetype)accept
{