mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-04 05:44:35 +00:00
[PR #577] [MERGED] [enhancement] Client_server folder code updated for windows OS as well. #1006
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/577
Author: @kvedala
Created: 7/20/2020
Status: ✅ Merged
Merged: 7/22/2020
Merged by: @kvedala
Base:
master← Head:client_server_win📝 Commits (10+)
52a7176update codes to run on Windows platform as wellf13da14added cmake for client_server0cde0c6added scope parameters4b45cf9force use of unistd.h in non-windows41b829duse size_t instead of intac0991euse unsigned int instead of size_tc82ce25clang-tidy fixes forac0991eb518252ed1updated UDP server-client as well29cb97ause unsigned int61f1df0added documentation📊 Changes
6 files changed (+261 additions, -38 deletions)
View changed files
📝
CMakeLists.txt(+1 -0)➕
client_server/CMakeLists.txt(+45 -0)📝
client_server/client.c(+59 -7)📝
client_server/server.c(+70 -13)📝
client_server/udp_client.c(+42 -9)📝
client_server/udp_server.c(+44 -9)📄 Description
Description of Change
Existing implementations used BSD sockets and would not compile using MSVC. Code is now updated to use Winsock on windows and BSD sockets on *nix platforms.
References
Closes #572
Checklist
Notes:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.