Re: [Plug] sockets

Kyle Burton on 1999年8月16日 16:20:33 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [Plug] sockets


And...you can set up a handler to catch it [sigpipe] using the signal(2) 
function.
sorry for the multiple replies
k
------------------------------------------------------------------------------
Timesharing, n: An access method whereby one computer abuses many people. 
 -- Rendus (from http://slashdot.org)
mortis@voicenet.com http://www.voicenet.com/~mortis
------------------------------------------------------------------------------
On 1999年8月16日, Kyle Burton wrote:
> Er, broken pipe? I think thats a signal, not an exception. 
> 
> k
> 
> ------------------------------------------------------------------------------
> Timesharing, n: An access method whereby one computer abuses many people. 
> -- Rendus (from http://slashdot.org)
> mortis@voicenet.com http://www.voicenet.com/~mortis
> ------------------------------------------------------------------------------
> 
> On 1999年8月16日, Kyle Burton wrote:
> 
> > I think you can do a select(2) to see what state the socket is in, and act
> > accordingly. If that's not what you're looking for, try ioctl(2) [and 
> > subsequently ioctl_list(2), or fcntl(2).
> > 
> > 
> > See Richard Steven's books on netowrk, and unix programming. They'll have
> > clearly written examples for anything you're trying to do.
> > 
> > It's not C or C++ specfic, it's library (socket) specific.
> > 
> > k
> > 
> > ------------------------------------------------------------------------------
> > Timesharing, n: An access method whereby one computer abuses many people. 
> > -- Rendus (from http://slashdot.org)
> > mortis@voicenet.com http://www.voicenet.com/~mortis
> > ------------------------------------------------------------------------------
> > 
> > On 1999年8月16日, Alexander John Batyi wrote:
> > 
> > > Please forgive me for the nonlinux specific post. (please please please)
> > > 
> > > How does one know a client socket has dropped off in C++. Write to it and
> > > catch the "broken pipe" exception?
> > > 
> > > 
> > > _______________________________________________
> > > Plug maillist - Plug@lists.nothinbut.net
> > > http://lists.nothinbut.net/mail/listinfo/plug
> > > 
> > 
> > 
> > _______________________________________________
> > Plug maillist - Plug@lists.nothinbut.net
> > http://lists.nothinbut.net/mail/listinfo/plug
> > 
> 
> 
> _______________________________________________
> Plug maillist - Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 
_______________________________________________
Plug maillist - Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug



AltStyle によって変換されたページ (->オリジナル) /