I have a small problem and cant work out what i am doing wrong.

I have stripped out the code to this and this hangs in udp_sendto waiting on a 
mbox

int sock;
int onBool = 1;
int err;
struct sockaddr_in addr;

        memset(&addr, 0, sizeof(addr));
        addr.sin_family          = AF_INET;
        addr.sin_addr.s_addr = htonl( (239<<24)|(255<<16)|(255<<8)|(250));
        addr.sin_port            = 50050;

        sock = socket(PF_INET, SOCK_DGRAM, 0);
//    err = setsockopt( sock, SOL_SOCKET, SO_REUSEADDR, (char *) &onBool, 
sizeof (int));
        err = bind( sock, (struct sockaddr *)&addr, sizeof(struct sockaddr));
        err = sendto( sock, "Hello", 5, 0, (struct sockaddr *)&addr, sizeof( 
addr));
        closesocket( sock);

Any ideas, as i get no errors, also port 239.255.255.250 is opened as multicast 
but i am not even getting data to be passed to the ethernet chip.

joolz
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to