104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
- (OFString *)description
{
if (_host != nil)
return [OFString stringWithFormat:
@"Binding to port %" @PRIu16 @" on host %@ failed in "
@"socket of type %@: %@",
_port, _host, [_socket class], of_strerror(_errNo)];
else
return [OFString stringWithFormat:
@"Binding to port %" @PRIx16 @" for packet type %" @PRIx8
@" failed in socket of type %@: %@",
_port, _packetType, [_socket class], of_strerror(_errNo)];
}
@end
|
|
|
|
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
- (OFString *)description
{
if (_host != nil)
return [OFString stringWithFormat:
@"Binding to port %" @PRIu16 @" on host %@ failed in "
@"socket of type %@: %@",
_port, _host, [_socket class], OFStrError(_errNo)];
else
return [OFString stringWithFormat:
@"Binding to port %" @PRIx16 @" for packet type %" @PRIx8
@" failed in socket of type %@: %@",
_port, _packetType, [_socket class], OFStrError(_errNo)];
}
@end
|