Socket API recvfrom()

Hi,

When I use socket, Can I have the function recvfrom() with a timeout? Thus, calling process is blocked for X msec and when time expires, the function returns.

Thanks!!

Jiaxin

I use sendto() without a problem in my gethostbyname() function. I would assume that recvfrom() works.

Remember that blocking functions are not safe to use - it is better to implement a select() loop instead.

-Erik