Winsock2 Multiple Sockets

Hi,

i'am writing a client/server program with multiple UDP streams (using winsock2). The program is multithreaded and every thread needs his own stream (some of them server, some of them client). The UDP connection itself is no problem but i cannot manage to start more than one thread without crashing (they work just fine when i start only one). I gave every thread a different port but it seems that they are somehow conflicting with each other.

Can every process just get one port or something like that ? I'am running out of ideas here.

Thanks in advance
multiple UDP streams
They aren't streams. A UDP socket can receive a UDP datagram from anything, not just per-configured endpoint.

i cannot manage to start more than one thread without crashing (they work just fine when i start only one)
Sounds like you have sync issues.
Topic archived. No new replies allowed.