Hi,
I have an application with sends out udp data while also receiving udp data.. I wanted to make sure that if I send out some data, and the app listened on that port for traffic that if you sent it out on one ip then it could not be received on that ip...
This is how I tried to do it...
char *cli_ip;
.....
cli_ip = inet_ntoa(sending_addr.sin_addr);
if ((strcmp(cli_ip,(inet_ntoa(*(struct in_addr *)h->h_addr_list[0]))))!=0)
{
....
}
This does not work and it never enters this if statement..
Any ideas...
Matt
I have an application with sends out udp data while also receiving udp data.. I wanted to make sure that if I send out some data, and the app listened on that port for traffic that if you sent it out on one ip then it could not be received on that ip...
This is how I tried to do it...
char *cli_ip;
.....
cli_ip = inet_ntoa(sending_addr.sin_addr);
if ((strcmp(cli_ip,(inet_ntoa(*(struct in_addr *)h->h_addr_list[0]))))!=0)
{
....
}
This does not work and it never enters this if statement..
Any ideas...
Matt