|
|
@ -44,7 +44,7 @@ void create_addr(int network, char* address, int port,struct sockaddr* dest) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
exit(2);
|
|
|
|
exit(202);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -61,7 +61,7 @@ int create_local (int network, char transport, char* address, int port,struct so
|
|
|
|
} else if (network == 6) {
|
|
|
|
} else if (network == 6) {
|
|
|
|
addrlen = sizeof(struct sockaddr_in6);
|
|
|
|
addrlen = sizeof(struct sockaddr_in6);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
exit(7);
|
|
|
|
exit(207);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* The value of addrlen should be the size of the 'sockaddr'.
|
|
|
|
/* The value of addrlen should be the size of the 'sockaddr'.
|
|
|
@ -89,7 +89,7 @@ int create_remote (int network,char transport,char* address,int port,struct sock
|
|
|
|
} else if (network == 6) {
|
|
|
|
} else if (network == 6) {
|
|
|
|
addrlen = sizeof(struct sockaddr_in6);
|
|
|
|
addrlen = sizeof(struct sockaddr_in6);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
exit(7);
|
|
|
|
exit(207);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* The value of addrlen should be the size of the 'sockaddr'.
|
|
|
|
/* The value of addrlen should be the size of the 'sockaddr'.
|
|
|
|