shutdown on a listening socket
Enginuity1 | Enginuity2 | Enginuity3
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan
JY, that's ok until you're trying to connect to a server in the same process (via loopback). You need to call connect() on a socket, and then accept() on the socket it's connecting to - unless you make the connect call nonblocking (yuck) then it's impossible without using threads.
Superpig
- saving pigs from untimely fates, and when he's not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3
[edited by - Superpig on July 25, 2003 7:15:06 AM]
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse
quote:
unless you make the connect call nonblocking (yuck) then it''s impossible without using threads.
What''s wrong with a non-blocking connect call?
Anyhow, my networking architecture works now.
![](smile.gif)
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3
Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse