Hi

OK ,I removed the bind call because I allways received the same
message :

Cannot assign requested address

here is the bind call


....
        Destination.sin_family = AF_INET;
        //Destination.sin_addr.s_addr = 0xC7215111;
        Destination.sin_addr.s_addr = 0xC621518B; 
        Destination.sin_port = htons (TEST_PORT);

        //
        //Open a socket
        //
        Socket = socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP);
        if (Socket < 0)
        {
                printf("socket Error %d\n",Socket);
                return 0;
        }
if(bind(Socket,&Destination,sizeof(Destination))==-1)
{
perror("bind");
exit(1)
}
......

idem for the other program

what is wrong???

Fabien



_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to