ObjFW  Diff

Differences From Artifact [e0a392a175]:

To Artifact [735948244b]:


151
152
153
154
155
156
157
158
159


160
161
162
163


164
165
166
167
168


169
170
171
172


173
174
175
176
177
178
179
151
152
153
154
155
156
157


158
159
160
161


162
163
164
165
166


167
168
169
170


171
172
173
174
175
176
177
178
179







-
-
+
+


-
-
+
+



-
-
+
+


-
-
+
+








	return string;
}
@end

@implementation OFOpenFileFailedException
+ newWithObject: (id)obj
	andPath: (const char*)p
	andMode: (const char*)m
	andPath: (const char*)path_
	andMode: (const char*)mode_
{
	return [[self alloc] initWithObject: obj
				    andPath: p
				    andMode: m];
				    andPath: path_
				    andMode: mode_];
}

- initWithObject: (id)obj
	 andPath: (const char*)p
	 andMode: (const char*)m
	 andPath: (const char*)path_
	 andMode: (const char*)mode_
{
	if ((self = [super initWithObject: obj])) {
		path = (p != NULL ? strdup(p) : NULL);
		mode = (m != NULL ? strdup(m) : NULL);
		path = (path_ != NULL ? strdup(path_) : NULL);
		mode = (mode_ != NULL ? strdup(mode_) : NULL);
	}

	return self;
}

- free
{
350
351
352
353
354
355
356
357
358


359
360
361
362


363
364
365
366
367


368
369
370
371


372
373
374
375
376
377
378
350
351
352
353
354
355
356


357
358
359
360


361
362
363
364
365


366
367
368
369


370
371
372
373
374
375
376
377
378







-
-
+
+


-
-
+
+



-
-
+
+


-
-
+
+








	return string;
}
@end

@implementation OFAddressTranslationFailedException
+ newWithObject: (id)obj
	andNode: (const char*)n
     andService: (const char*)s
	andNode: (const char*)node_
     andService: (const char*)service_
{
	return [self newWithObject: obj
			   andNode: n
			andService: s];
			   andNode: node_
			andService: service_];
}

- initWithObject: (id)obj
	 andNode: (const char*)n
      andService: (const char*)s
	 andNode: (const char*)node_
      andService: (const char*)service_
{
	if ((self = [super initWithObject: obj])) {
		node = (n != NULL ? strdup(n) : NULL);
		service = (s != NULL ? strdup(s) : NULL);
		node = (node_ != NULL ? strdup(node_) : NULL);
		service = (service_ != NULL ? strdup(service_) : NULL);
	}

	return self;
}

- free
{
408
409
410
411
412
413
414
415
416


417
418
419
420


421
422
423
424
425


426
427
428
429


430
431
432
433
434
435
436
408
409
410
411
412
413
414


415
416
417
418


419
420
421
422
423


424
425
426
427


428
429
430
431
432
433
434
435
436







-
-
+
+


-
-
+
+



-
-
+
+


-
-
+
+







{
	return service;
}
@end

@implementation OFConnectionFailedException
+ newWithObject: (id)obj
	andHost: (const char*)h
	andPort: (uint16_t)p
	andHost: (const char*)host_
	andPort: (uint16_t)port_
{
	return [self newWithObject: obj
			   andHost: h
			   andPort: p];
			   andHost: host_
			   andPort: port_];
}

- initWithObject: (id)obj
	 andHost: (const char*)h
	 andPort: (uint16_t)p
	 andHost: (const char*)host_
	 andPort: (uint16_t)port_
{
	if ((self = [super initWithObject: obj])) {
		host = (h != NULL ? strdup(h) : NULL);
		port = p;
		host = (host_ != NULL ? strdup(host_) : NULL);
		port = port_;
	}

	return self;
}

- free
{
460
461
462
463
464
465
466
467
468
469



470
471
472
473
474



475
476
477
478
479
480



481
482
483
484
485



486
487
488
489
490
491
492
460
461
462
463
464
465
466



467
468
469
470
471



472
473
474
475
476
477



478
479
480
481
482



483
484
485
486
487
488
489
490
491
492







-
-
-
+
+
+


-
-
-
+
+
+



-
-
-
+
+
+


-
-
-
+
+
+







{
	return port;
}
@end

@implementation OFBindFailedException
+ newWithObject: (id)obj
	andHost: (const char*)h
	andPort: (uint16_t)p
      andFamily: (int)f
	andHost: (const char*)host_
	andPort: (uint16_t)port_
      andFamily: (int)family_
{
	return [self newWithObject: obj
			   andHost: h
			   andPort: p
			 andFamily: f];
			   andHost: host_
			   andPort: port_
			 andFamily: family_];
}

- initWithObject: (id)obj
	 andHost: (const char*)h
	 andPort: (uint16_t)p
       andFamily: (int)f
	 andHost: (const char*)host_
	 andPort: (uint16_t)port_
       andFamily: (int)family_
{
	if ((self = [super initWithObject: obj])) {
		host = (h != NULL ? strdup(h) : NULL);
		port = p;
		family = f;
		host = (host_ != NULL ? strdup(host_) : NULL);
		port = port_;
		family = family_;
	}

	return self;
}

- free
{
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
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







-
+


-
+



-
+


-
+







{
	return family;
}
@end

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

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

	return self;
}

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