Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 15th, 2005, 9:03 PM   #1
galapogos
Newbie
 
Join Date: Feb 2005
Posts: 4
Rep Power: 0 galapogos is on a distinguished road
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!
galapogos is offline   Reply With Quote
Old Feb 16th, 2005, 2:08 PM   #2
galapogos
Newbie
 
Join Date: Feb 2005
Posts: 4
Rep Power: 0 galapogos is on a distinguished road
bump!
galapogos is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:10 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC