{"id":22342765,"url":"https://github.com/aircloud/csocket","last_synced_at":"2025-07-29T20:40:31.625Z","repository":{"id":95590254,"uuid":"84562363","full_name":"aircloud/csocket","owner":"aircloud","description":"c语言编写的socket服务器等相关内容","archived":false,"fork":false,"pushed_at":"2017-03-10T13:34:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-24T18:45:56.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aircloud.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-10T13:25:47.000Z","updated_at":"2017-03-10T13:27:50.000Z","dependencies_parsed_at":"2023-05-21T00:00:38.822Z","dependency_job_id":null,"html_url":"https://github.com/aircloud/csocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aircloud/csocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircloud%2Fcsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircloud%2Fcsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircloud%2Fcsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircloud%2Fcsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aircloud","download_url":"https://codeload.github.com/aircloud/csocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aircloud%2Fcsocket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267755475,"owners_count":24139452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T08:13:39.302Z","updated_at":"2025-07-29T20:40:31.589Z","avatar_url":"https://github.com/aircloud.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### c语言编写的socket通信服务器\n\n#### 程序说明\n\n我这边没有做可视化界面。\n\n测试环境为Linux 16.04\n\ninformLinuxClient.cpp   \ninformLinuxServer.cpp   \n两个文件为参考书提供的简短示例程序。\n\nthreadpool.h   \nthreadpool.c    \n为线程调度函数\n\nmain.c   \n为服务端主程序\n\nmainclient.c\n为客户端主程序\n\n\n#### 接口说明\n\n数据包格式为struct，有info和type两个字段，type取值：\n\n1.Connect to the origin server   \n2.Disconnect to the origin server   \n3.Get now time  \n4.Get the server name     \n5.Get the info of all the clients connected to the same server   \n6.Send message to a certain client   \n\ninfo表示信息，通过`,`和`\\n`来区隔，其实大多数时候客户端只是接受信息并且呈现即可。\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faircloud%2Fcsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faircloud%2Fcsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faircloud%2Fcsocket/lists"}