Solved

socket

Posted on 2011-03-07
2
309 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now