majidpics
12-05-2002, 07:26 AM
i m in trouble
when i use htonl(INADDR_BROADCAST) and use sendto() message it returns the error of hostunreachable. while in case of INADDR_ANY it successfully returns.
One more thing on the recieving side when i use to recieve data by using recvfrom() it waits infinitely and not recieving data.I have checked that port is successfully bound.But all in vain.
when i use htonl(INADDR_BROADCAST) and use sendto() message it returns the error of hostunreachable. while in case of INADDR_ANY it successfully returns.
One more thing on the recieving side when i use to recieve data by using recvfrom() it waits infinitely and not recieving data.I have checked that port is successfully bound.But all in vain.