socket options



I am trying to set socket options
   
   struct ip_mreq mreq;
   setsockopt(socket, IPPROTO_IP, IP_ADD_MEMBERSHIP,
                &mreq, sizeof(mreq));

If I make this call, before creating widgets etc, it
works fine. But when I have created widgets and I make
this call, through a callback of a button_click, it
does not succeed. 
It gives an error message "invalid arguments". 

Can anyone throw some light on it?
Thanks

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]