![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 4
Rep Power: 0
![]() |
How to specify a timeout for recvfrom()?
Hi,
Can anyone tell me how I can specify a timeout value for a blocking "recvfrom(socket, pack, sizeof(Packet), 0, (struct sockaddr *)&host, &hostlen);" call? I searched around and from what I've found, I need to set a timeout value in a timeval struct(which I can do), and somehow use select(), which I'm not very sure of how to use. This is for a UDP data transfer btw. Thanks! |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Feb 2005
Posts: 4
Rep Power: 0
![]() |
bump!
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|