{"id":18535960,"url":"https://github.com/gytis-ivaskevicius/synchronoustcpserverlibrary","last_synced_at":"2025-04-09T15:32:54.445Z","repository":{"id":114113441,"uuid":"78136286","full_name":"gytis-ivaskevicius/SynchronousTCPServerLibrary","owner":"gytis-ivaskevicius","description":"Simple Synchronous TCP Server Library written in C#.","archived":false,"fork":false,"pushed_at":"2017-04-14T14:43:45.000Z","size":80,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:54:43.637Z","etag":null,"topics":["easy-to-use","library","tcp-server","tcp-socket"],"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/gytis-ivaskevicius.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-01-05T18:07:34.000Z","updated_at":"2023-09-26T02:38:11.000Z","dependencies_parsed_at":"2023-06-13T10:45:54.549Z","dependency_job_id":null,"html_url":"https://github.com/gytis-ivaskevicius/SynchronousTCPServerLibrary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gytis-ivaskevicius%2FSynchronousTCPServerLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gytis-ivaskevicius%2FSynchronousTCPServerLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gytis-ivaskevicius%2FSynchronousTCPServerLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gytis-ivaskevicius%2FSynchronousTCPServerLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gytis-ivaskevicius","download_url":"https://codeload.github.com/gytis-ivaskevicius/SynchronousTCPServerLibrary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248058214,"owners_count":21040719,"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","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":["easy-to-use","library","tcp-server","tcp-socket"],"created_at":"2024-11-06T19:28:56.780Z","updated_at":"2025-04-09T15:32:54.438Z","avatar_url":"https://github.com/gytis-ivaskevicius.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SynchronousTCPServerLibrary\nSimple Synchronous TCP Server Library written in C#.\n#Documentation\n\n## startListening(int port, int backlog)\n1. port - Port on which server should run.\n2. backlog - Maximum number of permitted connections.\u003cbr\u003e\nNotes: Starts server in the same thread, in other words - everything that goes after this method wont be executed untill server is stoped. To avoid it - read below.\n\n\u003cbr\u003e\n\n## startListeningInSeperateThread(int port, int backlog)\n1. port - Port on which server should run.\n2. backlog - Maximum number of permitted connections.\u003cbr\u003e\nNotes: Creates thread in which it listens for connestions.\n\n\u003cbr\u003e\n\n## closeServer()\nNotes: Closes server.\n\n\u003cbr\u003e\n\n## send(Socket socket, string message)\n1. socket - Socket aka client.\n2. message - message that you want to send.\n\n\u003cbr\u003e\n\n## sendln(Socket socket, string message)\n1. socket - Socket aka client.\n2. message - message that you want to send.\u003cbr\u003e\nNotes: Same as \"send\" but adds \"new line\" symbol at the end of the message.\n\n\u003cbr\u003e\n\n## broadcast(string message)\n1. message - message that you want to broadcast.\u003cbr\u003e\nNotes: Broadcasts message to all clients.\n\n\u003cbr\u003e\n\n## broadcastln(string message)\n1. message - message that you want to broadcast.\u003cbr\u003e\nNotes: Broadcasts message(with \"new line\" symbol) to all clients.\n\n\u003cbr\u003e\n\n## kick(Socket socket)\n1. socket - Disconnects socket(client) of ur choice.\n\n\u003cbr\u003e\n\n## kickAll()\nNote: Disconnects all sockets.\n\n\u003cbr\u003e\n\n# Delegates\n1.onConnect \u003cbr\u003e\n2.onDisconnect\u003cbr\u003e\n3.onDataReceive\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgytis-ivaskevicius%2Fsynchronoustcpserverlibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgytis-ivaskevicius%2Fsynchronoustcpserverlibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgytis-ivaskevicius%2Fsynchronoustcpserverlibrary/lists"}