︙ | | |
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
|
-
-
-
+
+
+
|
return false;
return [_delegate stream: object
didReadIntoBuffer: _buffer
length: length];
} else {
if ([_delegate respondsToSelector:
@selector(stream:didFailWithException:)])
[_delegate stream: object
didFailWithException: exception];
@selector(stream:didFailToReadWithException:)])
[_delegate stream: object
didFailToReadWithException: exception];
return false;
}
# ifdef OF_HAVE_BLOCKS
}
# endif
}
|
︙ | | |
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
|
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
|
-
-
-
+
+
+
|
length: _readLength])
return false;
_readLength = 0;
return true;
} else {
if ([_delegate respondsToSelector:
@selector(stream:didFailWithException:)])
[_delegate stream: object
didFailWithException: exception];
@selector(stream:didFailToReadWithException:)])
[_delegate stream: object
didFailToReadWithException: exception];
return false;
}
# ifdef OF_HAVE_BLOCKS
}
# endif
}
|
︙ | | |
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
|
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
|
-
-
-
+
+
+
|
@selector(stream:didReadLine:)])
return false;
return [_delegate stream: object
didReadLine: line];
} else {
if ([_delegate respondsToSelector:
@selector(stream:didFailWithException:)])
[_delegate stream: object
didFailWithException: exception];
@selector(stream:didFailToReadWithException:)])
[_delegate stream: object
didFailToReadWithException: exception];
return false;
}
# ifdef OF_HAVE_BLOCKS
}
# endif
}
|
︙ | | |
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
|
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
|
-
-
-
+
+
+
|
if (_length == 0)
return false;
_writtenLength = 0;
return true;
} else {
if ([_delegate respondsToSelector:
@selector(stream:didFailWithException:)])
[_delegate stream: object
didFailWithException: exception];
@selector(stream:didFailToWriteWithException:)])
[_delegate stream: object
didFailToWriteWithException: exception];
return false;
}
# ifdef OF_HAVE_BLOCKS
}
# endif
}
|
︙ | | |
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
|
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
|
-
-
-
+
+
+
|
@selector(socket:didAcceptSocket:)])
return false;
return [_delegate socket: object
didAcceptSocket: acceptedSocket];
} else {
if ([_delegate respondsToSelector:
@selector(stream:didFailWithException:)])
[_delegate stream: object
didFailWithException: exception];
@selector(socket:didFailToAcceptWithException:)])
[_delegate socket: object
didFailToAcceptWithException: exception];
return false;
}
# ifdef OF_HAVE_BLOCKS
}
# endif
}
|
︙ | | |