Allow ENet to directly use the resolved address rather than doing DNS resolution itself

This commit is contained in:
Cameron Gutman
2016-04-02 14:08:06 -04:00
parent 4055fb6d77
commit 33deb0fe1a
3 changed files with 3 additions and 9 deletions

2
enet

Submodule enet updated: a602abf244...2bc07bb50d

View File

@@ -624,10 +624,7 @@ int startControlStream(void) {
ENetAddress address;
ENetEvent event;
// This will do DNS resolution if required
if (enet_address_set_host(&address, RemoteAddrString) < 0) {
return -1;
}
enet_address_set_address(&address, (struct sockaddr *)&RemoteAddr, RemoteAddrLen);
enet_address_set_port(&address, 47999);
// Create a client that can use 1 outgoing connection and 1 channel

View File

@@ -472,10 +472,7 @@ int performRtspHandshake(void) {
ENetAddress address;
ENetEvent event;
// This will do DNS resolution if required
if (enet_address_set_host(&address, RemoteAddrString) < 0) {
return -1;
}
enet_address_set_address(&address, (struct sockaddr *)&RemoteAddr, RemoteAddrLen);
enet_address_set_port(&address, 48010);
// Create a client that can use 1 outgoing connection and 1 channel