|
|
@ -130,7 +130,7 @@ SOCKET create_remote (int network,char transport, const char* address,int port,s
|
|
|
|
if (err_code != 0) {
|
|
|
|
if (err_code != 0) {
|
|
|
|
return (-1 * err_code);
|
|
|
|
return (-1 * err_code);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
remote_addr_struct = results->ai_addr;
|
|
|
|
remote_addr_struct = (struct sockaddr_storage *)results->ai_addr;
|
|
|
|
network = inet_to_int(results->ai_family);
|
|
|
|
network = inet_to_int(results->ai_family);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
create_addr(network,address,port,remote_addr_struct);
|
|
|
|
create_addr(network,address,port,remote_addr_struct);
|
|
|
|