Differences From Artifact [e5e2000892]:
- File src/OFUDPSocket.m — part of check-in [c4f36e3692] at 2014-01-29 15:59:01 on branch trunk — OFUDPSocket: Add observing (user: js, size: 6964) [annotate] [blame] [check-ins using]
To Artifact [584c86fff6]:
- File
src/OFUDPSocket.m
— part of check-in
[fb590316ba]
at
2014-01-30 12:26:12
on branch trunk
— Rename +[UDPSocket hostForAddress:port:]
It is now called +[getHost:andPort:forAddress:]. This makes it much
clearer from the selector alone what it actually does. (user: js, size: 6996) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
157 158 159 160 161 162 163 | memcpy(&address->address, results[0]->address, results[0]->addressLength); address->length = results[0]->addressLength; of_resolver_free(results); } | | | > | | | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
memcpy(&address->address, results[0]->address,
results[0]->addressLength);
address->length = results[0]->addressLength;
of_resolver_free(results);
}
+ (void)getHost: (OFString *__autoreleasing*)host
andPort: (uint16_t*)port
forAddress: (of_udp_socket_address_t*)address
{
of_address_to_string_and_port(
(struct sockaddr*)&address->address, address->length, host, port);
}
- init
{
self = [super init];
_socket = INVALID_SOCKET;
|
| ︙ | ︙ |