ObjFW  Diff

Differences From Artifact [e5e2000892]:

To Artifact [584c86fff6]:


157
158
159
160
161
162
163
164
165



166
167
168


169
170
171
172
173
174
175
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);
}

+ (OFString*)hostForAddress: (of_udp_socket_address_t*)address
		       port: (uint16_t*)port
+ (void)getHost: (OFString *__autoreleasing*)host
	andPort: (uint16_t*)port
     forAddress: (of_udp_socket_address_t*)address
{
	return of_address_to_string_and_port(
	    (struct sockaddr*)&address->address, address->length, port);
	of_address_to_string_and_port(
	    (struct sockaddr*)&address->address, address->length, host, port);
}

- init
{
	self = [super init];

	_socket = INVALID_SOCKET;