|
-
October 6th, 2004, 02:58 AM
#3
Re: Winsock: listen and backlog-parameter
Hi wombat, thanks for your reply. I found what MSDN says but I didn't understand it... Sorry, I'm new to winsocks. Perhaps I should explain what I want to do: I want to build a server with blocking winsocks (embedded in threads). To keep it simple in the beginning the server should just receiving and tracing text-msg which it receives from the clients.
I do:
1. Create a socket with socket()
2. bind() the socket
3. listen() to the socket
4. accept() the connection -> acceptSocket
5. recv from the acceptSocket
My problem is: I don't understand how to receive multiple data. That means: While receiving another client could try to connect and si refused because the server is still receiving. How could this be handled?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|