Solved

socket

Posted on 2011-03-07
2
311 Views
Last Modified: 2012-06-27
what is the default timeout for datagram socket that is waiting on recvFrom()
0
Comment
Question by:learningunix
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 35061776
Find out yourself:
int sock;

//...

struct timeval tv;

getsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,&tv,sizeof(tv));

Open in new window

0
 

Author Closing Comment

by:learningunix
ID: 35070354
Thx
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Handle Exceptions during instantiation 28 415
PDF library for Delphi 2 121
Grammars for C C++ and java 1 122
Why  my code (program) build with old compiler? 11 43
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question