Im trying to run two winsock controls at the same time. One listening throughout the programs life and one which opens an outwards connection which lasts for a few seconds.
The listening connection Always manages to sit and listen but when i hit the outwards' connect call the programs error handling kicks in and the outwards connection is never made.

assigned two 3 different sock handles
1. Listening server
2. new connection spawn
3. temporary outwards connection

2 wsadata structs for each connection
If Anyone can point me to any source which runs a listening socket and a seperate outgoing socket i would be sooooooooooooooooooooooooo relieved

Posted on 2001-10-31 03:01:32 by Joe
mate, I'll love to help you, but I really don't understand your question

I mean ... you can easily create more than one socket with the same address, you can bind only one of them to a specific port (and that's your server), but you should be able to use the second one freely
Try using the 2nd socket on a different port from the server, and if you still have problems it means there is something wrong with your code

Posted on 2001-11-14 12:48:16 by random