Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: socket question  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline jahc

socket question
« on: November 18, 2002, 11:13:04 AM »
How do I make recv() time out if it recieves no data for say, 10
seconds?

This is what my code currently looks like:

long n=10;
setsockopt(a, SOL_SOCKET, SO_RCVTIMEO, &n, sizeof(n));