lkml.org 
[lkml]   [1998]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 04 Jun 1998 21:43:13 -0500
FromJerry Geis <>
Subjectflushing a socket on linux
I am trying to find out how to flush a socket
under linux.

I tried ioctl(fd, TCFLSH, 0) but I think that only
works for terminal file descriptors not sockets.

What I am trying to do is detect a socketpair()
connection has been lost before I use sendmsg
to send a file descriptor to the other task.

I do realize that catching SIGPIPE after sendmsg is
called should work, I need to know if the connection
is lost before that.


Please CC me directly.

Thanks,

Jerry Geis

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2010