Re: a better socketpair

2007-03-08 Thread alex
I found something about pipes in the rel notes for 1.5.20-1 at http://cygwin.com/ml/cygwin-announce/2006-07/msg0.html looks like they work. I found a brief mention of socketpair at http://cygwin.com/cygwin-api/std-misc.html#AEN107 and more here about sockets and select http://cygwin.com/cy

Re: a better socketpair

2007-03-08 Thread Nathan Myers
Hi Christopher, Thank you for your quick reply. I understand that this code might not ultimately be useful to cygwin. It continues to work in my project, so I'm not put out. I wonder, though, do you know if it might be useful to Mingw? I.e., might it be worth offering to them, or do you kno

Re: a better socketpair

2007-03-08 Thread Christopher Faylor
On Thu, Mar 08, 2007 at 04:20:47PM -0800, Nathan Myers wrote: >Hi Christopher, > >Thank you for your quick reply. I understand that this code might >not ultimately be useful to cygwin. It continues to work in my >project, so I'm not put out. > >I wonder, though, do you know if it might be use

Re: a better socketpair

2007-03-08 Thread Christopher Faylor
On Thu, Mar 08, 2007 at 02:39:50PM -0800, Nathan Myers wrote: >Hi all, > >I did my first bit of coding on win32 last month, and was disgusted >to find no socketpair. Cygwin's socketpair (at least the version I >found) seems to use _pipe underneath, which as I understand it is not >suitable as an a

a better socketpair

2007-03-08 Thread Nathan Myers
Hi all, I did my first bit of coding on win32 last month, and was disgusted to find no socketpair. Cygwin's socketpair (at least the version I found) seems to use _pipe underneath, which as I understand it is not suitable as an argument to select(). So, I wrote my own: http://cantrip.org/sock