796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
|
[(OFTCPSocket *)acceptedSocket setDelegate: connection];
[acceptedSocket asyncReadLine];
return true;
}
- (void)stream: (OF_KINDOF(OFStream *))stream
didFailWithException: (id)exception
{
if ([_delegate respondsToSelector:
@selector(server:didReceiveExceptionOnListeningSocket:)])
if ([_delegate server: self
didReceiveExceptionOnListeningSocket: exception])
[stream asyncAccept];
}
@end
|
|
|
|
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
|
[(OFTCPSocket *)acceptedSocket setDelegate: connection];
[acceptedSocket asyncReadLine];
return true;
}
- (void)stream: (OF_KINDOF(OFStream *))stream
didFailToAcceptWithException: (id)exception
{
if ([_delegate respondsToSelector:
@selector(server:didReceiveExceptionOnListeningSocket:)])
if ([_delegate server: self
didReceiveExceptionOnListeningSocket: exception])
[stream asyncAccept];
}
@end
|