Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RubinInsert/BasicWinSockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

7 Commits

Repository files navigation

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

About

TCP and UDP Implementations of the WinSock API in C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /