197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
if (sock == INVALID_SOCKET)
@throw [OFConnectionFailedException newWithClass: isa
socket: self
host: host
port: port];
}
- (uint16_t)bindToPort: (uint16_t)port
onHost: (OFString*)host
{
union {
struct sockaddr_storage storage;
struct sockaddr_in in;
struct sockaddr_in6 in6;
} addr;
socklen_t addrLen;
|
<
|
>
|
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
|
if (sock == INVALID_SOCKET)
@throw [OFConnectionFailedException newWithClass: isa
socket: self
host: host
port: port];
}
- (uint16_t)bindToHost: (OFString*)host
port: (uint16_t)port
{
union {
struct sockaddr_storage storage;
struct sockaddr_in in;
struct sockaddr_in6 in6;
} addr;
socklen_t addrLen;
|