113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
- (OFString *)description
{
if (_host != nil)
return [OFString stringWithFormat:
@"A connection to %@ on port %" @PRIu16 @" could not be "
@"established in socket of type %@: %@",
_host, _port, [_socket class], of_strerror(_errNo)];
else if (memcmp(_node, "\0\0\0\0\0", IPX_NODE_LEN) == 0)
return [OFString stringWithFormat:
@"A connection to %02X%02X%02X%02X%02X%02X port %" @PRIu16
@" on network %" @PRIX32 " could not be established in "
@"socket of type %@: %@",
_node[0], _node[1], _node[2], _node[3], _node[4], _node[5],
_port, _network, [_socket class], of_strerror(_errNo)];
else
return [OFString stringWithFormat:
@"A connection could not be established in socket of "
@"type %@: %@",
[_socket class], of_strerror(_errNo)];
}
@end
|
|
|
|
|
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|
- (OFString *)description
{
if (_host != nil)
return [OFString stringWithFormat:
@"A connection to %@ on port %" @PRIu16 @" could not be "
@"established in socket of type %@: %@",
_host, _port, [_socket class], OFStrError(_errNo)];
else if (memcmp(_node, "\0\0\0\0\0", IPX_NODE_LEN) == 0)
return [OFString stringWithFormat:
@"A connection to %02X%02X%02X%02X%02X%02X port %" @PRIu16
@" on network %" @PRIX32 " could not be established in "
@"socket of type %@: %@",
_node[0], _node[1], _node[2], _node[3], _node[4], _node[5],
_port, _network, [_socket class], OFStrError(_errNo)];
else
return [OFString stringWithFormat:
@"A connection could not be established in socket of "
@"type %@: %@",
[_socket class], OFStrError(_errNo)];
}
@end
|