Hi,
You can do the following:
Enter a loop in which we:
1. Call accept() to wait for an incoming connection
2. Service the request on our new connection
3. close() our connection, and continue the loop to wait for a new one
This article would help you understand the TCP/IP mechanism
Beginning Winsock Programming - Simple TCP server[
^]