Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 1.42 KB

File metadata and controls

22 lines (20 loc) · 1.42 KB

WinSock Implementations

TCP

  • Echos the message back to clients, and has a basic command to close the server.
    • OneServerOneClient serves clients one at a time and places the rest in a queue.
    • MultipleClients serves clients in a main loop consecutively.

UDP

  • Sends the mouse coordinates from the client to the server
    • The client serializes the POINT struct into the buffer
    • The server deserializes the POINT struct and prints it to the console

Resources

Additional Reading

Stack Overflow - Blocking vs Non-Blocking sockets

TCP Client-Server Interaction

image image

UDP Client-Server Interaction

image