Nemoticchigga 0 Junior Poster in Training

I have a server running using winsock2.h TCP/IP. I open two ports on my pc, and then in a different application connect and send and receive to and from the server respectivly. In my client application receiving port, everything is working perfectly. In my server that is receiving though, it gets stuck at recv(blah, blah). Do I need to flush the queue or something like that. All the code works, but for some reason when this server app tries to send and receive at the same time on two different ports, in two threads, it connects, but just hits the recv line and stays there, while sending is still working. Any ideas?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.