ObjFW  Diff

Differences From Artifact [0baa314b8c]:

To Artifact [e8e748fa8d]:


515
516
517
518
519
520
521















































}

- (int)family
{
	return family;
}
@end






















































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
}

- (int)family
{
	return family;
}
@end

@implementation OFListenFailedException
+ newWithObject: (id)obj
     andBackLog: (int)b
{
	return [[self alloc] initWithObject: obj
				 andBackLog: b];
}

- initWithObject: (id)obj
      andBackLog: (int)b
{
	if ((self = [super initWithObject: obj]))
		backlog = b;

	return self;
}

- (const char*)cString
{
	if (string != NULL)
		return string;

	asprintf(&string, "Failed to listen in socket of type %s with a back "
	    "log of %d!", [object name], backlog);

	return string;
}

- (int)backLog
{
	return backlog;
}
@end

@implementation OFAcceptFailedException
- (const char*)cString
{
	if (string != NULL)
		return string;

	asprintf(&string, "Failed to accept connection in socket of type %s!",
	    [object name]);

	return string;
}
@end