• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 323
  • Last Modified:

socket

what is the default timeout for datagram socket that is waiting on recvFrom()
0
learningunix
Asked:
learningunix
1 Solution
 
jkrCommented:
Find out yourself:
int sock;

//...

struct timeval tv;

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

Open in new window

0
 
learningunixAuthor Commented:
Thx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now