08-06-2008
Have you tried select() with timeout set to non-NULL?
Without your code, this amounts to a wild guess.....
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I prepare to install linux distros , freebsd and solaris(totally 6 OS) in a 40G harddisk, but I fail to do it, so I would like to ask some question here.
Can different distros share the same linux swap?or each distros need to have their own?
I made 6 partitions(5 x 7G , 1 x 4G) and 256M(I... (8 Replies)
Discussion started by: jcheng
8 Replies
2. BSD
for all you unix/linux interested heres an online book for free that covers the basics of BSD SysV Unix commands and applications . giving the average linux user a perspective on the differences in context of the two operating systems and for BSD users covers material as a refernce guide.
... (0 Replies)
Discussion started by: moxxx68
0 Replies
3. Programming
Hello there, i've lurked this forum for a while (in few month i will have been registered for two years) but this is my firts post.
Well, after having looked to C language as a black monster, i finally have decided to learn it, and to learn it very well!
So, i'm quite new to C, although i... (1 Reply)
Discussion started by: Freddie
1 Replies
4. Cybersecurity
I noticed a few w00tw00ts in our Apache2 logfile the other day, so I thought I would write a quick post on blocking them with iptables. Feel free to improve upon any of my scripts or ideas in this thread.
First of all, what is a w00tw00t and where might we find one?
Well, a w00tw00t is an... (10 Replies)
Discussion started by: Neo
10 Replies
5. UNIX for Dummies Questions & Answers
We have a server-client communication in our application. Sockets are used for the communication. We are using AF_INET sockets with SOCK_STREAM(TCP/IP). Also these sockets are in Non Blocking mode (O_NONBLOCK). Application is written in C++ on UNIX.
In our system the Server will write to a... (4 Replies)
Discussion started by: sanushchacko
4 Replies
6. Programming
Hi,
I have to write an UDP broadcast. It works so far, but how can I get the actual network address at runtime? Should run under Linux and Unix (Solaris).
Thanks (1 Reply)
Discussion started by: peng1967
1 Replies
7. UNIX and Linux Applications
I'm planning to learn Unix/Linux as much as possible to be able to expert on Unix system.
I have a few questions in regard to Unix system
1. How come they are so many different type of Linux, and do they follow same standard commands in the Unix system? I'm afraid of having so many choices... (6 Replies)
Discussion started by: mindful123
6 Replies
8. Programming
among the below socket programming api's, please let me know which are blocking and non-blocking.
socket
accept
bind
listen
write
read
close (2 Replies)
Discussion started by: VSSajjan
2 Replies
LEARN ABOUT DEBIAN
explain_select_or_die
explain_select_or_die(3) Library Functions Manual explain_select_or_die(3)
NAME
explain_select_or_die - blah blah and report errors
SYNOPSIS
#include <libexplain/select.h>
void explain_select_or_die(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
DESCRIPTION
The explain_select_or_die function is used to call the select(2) system call. On failure an explanation will be printed to stderr,
obtained from explain_select(3), and then the process terminates by calling exit(EXIT_FAILURE).
This function is intended to be used in a fashion similar to the following example:
explain_select_or_die(nfds, readfds, writefds, exceptfds, timeout);
nfds The nfds, exactly as to be passed to the select(2) system call.
readfds The readfds, exactly as to be passed to the select(2) system call.
writefds
The writefds, exactly as to be passed to the select(2) system call.
exceptfds
The exceptfds, exactly as to be passed to the select(2) system call.
timeout The timeout, exactly as to be passed to the select(2) system call.
Returns:
This function only returns on success. On failure, prints an explanation and exits.
SEE ALSO
select(2)
blah blah
explain_select(3)
explain select(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2008 Peter Miller
explain_select_or_die(3)