Mail Archives: cygwin/2000/04/20/16:22:29
------_=_NextPart_000_01BFAB0E.50F45086
Content-Type: text/plain;
charset="iso-8859-1"
I wrote a simple TCP client and server to test some of the socket
capabilities in cygwin. I setup cygwin yesterday pulling down the latest
"gz" files and using "setup.exe" to install. I am using the gcc-2.95.2
compiler.
I found out the hard way that fcntl doesn't work for creating a non-blocking
socket, so I used ioctl(fd, FIONBIO, &on) and that seems to work. However,
when I call connect(), I get an error back "no more processes". If I
comment out the ioctl call, it works just fine. Is this a known problem?
Are there any fixes or workarounds?
For grins, I'll attach the client and server samples.
Thanks,
Larry
<<socket.tar.gz>>
------_=_NextPart_000_01BFAB0E.50F45086
Content-Type: application/octet-stream;
name="socket.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="socket.tar.gz"
H4sICAB0/zgAA3NvY2tldC50YXIA7Rprc9s2Ml9PvwL1zXhkR7bpd+tHZvyQU01dySM67TS5DIem
IJs1RWpIyqmv5/9+u3jzZcutkrsP2KShACyAxb6w2G0QhTTO14Pp9M1Xg03H2dvZIW8IIft77Lvp
7DisDbC5vbe3DSPO/v7e3u6OswddO87WzhvifD2SNMyy3E8JeRP54yTOaSPeyWgSxmGWp36epNm3
oOybwMbqwqDF/pIzplGykVI/p6MDQpz9k2nqOLx/UbDRav0zjINoNqLkiKZpnKzfvTO6xkGcR8Wu
MAEZUn9S7I1pPropdmX5KAqrfWFS7krD+LayWgj/bYRxCfcx2wiToEwSdmdJcE/zan/+OKUZdrdo
PJuQP4nbP/dOP1xceG7vY5cck62d3f09hzwdSoTh2S8NCBLj7LJXwAD7NBdwfxl6Pw7cazW89T2b
vXhVuZjFQR4mMajHxA/jdhjnxE9vgw4J7sAoV1eh8bCCmOc0C9JwKpBbC1Ui0CLc+BkKyJ8tQnAI
VCxJvSAZ0UPd40U0ls1xGFFJa5Kq3si/zWTjd2CpIxvA8Us6zo3mkPoj2Zxkt16pK2E8cMN/Kwqm
SZojFiz7w9bmluxOgwcTK4tHhWbu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bLaRKeU4ZrVOYKgjszacmn1FRu2YDLz+oM+SJoctg6Qm
SlxOSal2WCHGnZcYUg7IdaxgDHBnp2J5wFnjhU6R+DKHcExphznFDwI6fzI+pRCr0HSa0twL/Cw/
qnjRd+1lk8TmLHvphDLXiXzW9H2HdOtYWGXWzlRSHTTu4pzn0/S0ckatMR9clxHe0hlhIosvsoSM
ILjLRwrJuRfyxwjiScQKSnBBKZI74jXRKT5leRJYTlbHZ0vIHCJrFBKLxddwmRkqwcgnlutAapMu
5g+AULYkSyYUc7ikoN0sljH6GzOVMi+JNYNhF0zioDJ01bvqFosfASwjiQKHhsUoUTwQWYalOtoM
8TnF/krxo7bkUsFqKoqIdHbZFL9CftKCBQsWLFiwYMGCBQsWLFiwYMGCBQsWLFiwYMGCBQsWLFiw
YMHC8/BfjZiTmgBQAAA=
------_=_NextPart_000_01BFAB0E.50F45086
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
------_=_NextPart_000_01BFAB0E.50F45086--
- Raw text -