Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nahrens007/windows-tcpip-server
This TCP IP server is able to handle multiple clients. When a client connects and sends a message, the server broadcasts exactly what is received from the client (there is no special client managing). It is up the clients to display their own username. This server is limited to 512 character messages.
https://github.com/nahrens007/windows-tcpip-server
multithreading server socket tcp thread windows
Last synced: 2 months ago
JSON representation
This TCP IP server is able to handle multiple clients. When a client connects and sends a message, the server broadcasts exactly what is received from the client (there is no special client managing). It is up the clients to display their own username. This server is limited to 512 character messages.
- Host: GitHub
- URL: https://github.com/nahrens007/windows-tcpip-server
- Owner: nahrens007
- Created: 2017-03-05T21:31:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-18T15:23:28.000Z (almost 8 years ago)
- Last Synced: 2024-10-13T00:57:02.702Z (3 months ago)
- Topics: multithreading, server, socket, tcp, thread, windows
- Language: C++
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Windows-TCPIP-Server
This TCP IP server is able to handle multiple clients. When a client connects and sends a message, the server broadcasts exactly what is received from the client (there is no special client managing). It is up the clients to display their own username. This server is limited to 512 character messages. Clients who unexpectedly disconnect are automatically removed from the broadcastig list.
# Resources
I used the following resources for creating the server:
http://www.bogotobogo.com/cplusplus/multithreading_win32A.php
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738545(v=vs.85).aspx
# Compile
When you compile, you must link to ws2_32; it contains the socket library required.