{"id":21497561,"url":"https://github.com/caglargul52/advanced-tcp","last_synced_at":"2025-03-17T12:26:02.035Z","repository":{"id":40906725,"uuid":"221013466","full_name":"caglargul52/advanced-tcp","owner":"caglargul52","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-08T09:17:39.000Z","size":40,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T22:14:42.213Z","etag":null,"topics":["asynchronous","multiclient","socket-programming","tcp-library"],"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/caglargul52.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}},"created_at":"2019-11-11T15:40:25.000Z","updated_at":"2020-02-04T07:17:50.000Z","dependencies_parsed_at":"2023-01-24T20:30:27.443Z","dependency_job_id":null,"html_url":"https://github.com/caglargul52/advanced-tcp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caglargul52%2Fadvanced-tcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caglargul52%2Fadvanced-tcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caglargul52%2Fadvanced-tcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caglargul52%2Fadvanced-tcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caglargul52","download_url":"https://codeload.github.com/caglargul52/advanced-tcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244032005,"owners_count":20386687,"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":["asynchronous","multiclient","socket-programming","tcp-library"],"created_at":"2024-11-23T16:25:11.532Z","updated_at":"2025-03-17T12:26:02.010Z","avatar_url":"https://github.com/caglargul52.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# .Net C# Advanced TCP Library\n\n## Features\n - End-to-end encrypted messaging (AES Algorithm)\n - Sending messages to all clients at the same time\n - Block computers with unwanted ip addresses\n - Automatic connection of clients when internet connection is disconnected and reconnect.\n - Asynchronous communication\n - A Server / MultiClient\n\n## Quick Start\n### Client.cs\n        static void Main(string[] args)\n        {\n            Client _client = new Client(\"password\");\n            _client.ConnectedServer += _client_ConnectedServer;\n            _client.DisconnectedServer += _client_DisconnectedServer;\n            _client.ReceivedMessageFromServer += _client_ReceivedMessageFromServer;\n            _client.ServerIpAddress = IPAddress.Parse(\"127.0.0.1\");\n            _client.ServerPort = 9000;\n            _client.ConnectServer();\n        }\n\n        private static void _client_ReceivedMessageFromServer(string message)\n        {\n            Console.WriteLine(message);\n        }\n\n        private static void _client_DisconnectedServer(string message)\n        {\n            Console.WriteLine(message);\n        }\n\n        private static void _client_ConnectedServer(LocalInfo info)\n        {\n            Console.WriteLine(info.pcName + \" - \" + info.ipAddress + \":\" + info.localEndPoint + \t  \" Message: Connected to Server\");\n            _client.SendMessageToServer(\"Hello\");\n        }\n\n### Server.cs\n        static void Main(string[] args)\n        {\n\t            Server _server = new Server(\"password\");\n                _server.ReceivedMessageFromClient += Server_ReceivedMessageFromClient;\n                _server.ConnectedClient += Server_ConnectedClient;\n                _server.DisconnectedClient += Server_DisconnectedClient;\n                _server.IpAddress = IPAddress.Parse(\"127.0.0.1\");\n                _server.Port = 9000;\n\n                //The following computers will be thrown directly from the server when connected.\n                _server.BlockedIpList = new List\u003cIPAddress\u003e { IPAddress.Parse(\"192.168.1.5\"), IPAddress.Parse(\"192.168.1.6\") };\n                _server.StartServer();\n        }\n\n        private static void Server_DisconnectedClient(ClientInfo clientInfo)\n        {\n            Console.Clear();\n            foreach (var client in _server.GetClientsList())\n            {\n                Console.WriteLine(client.pcName + \" - \" + client.ipAndRemoteEndPoint);\n            }\n        }\n\n        private static void Server_ConnectedClient(ClientInfo clientInfo)\n        {\n            Console.Clear();\n            foreach (var client in _server.GetClientsList())\n            {\n                Console.WriteLine(client.pcName + \" - \" + client.ipAndRemoteEndPoint);\n            }\n\n            _server.SendMessage(clientInfo, \"Welcome to Server\");\n        }\n\n        private static void Server_ReceivedMessageFromClient(ClientInfo clientInfo, string message)\n        {\n            Console.WriteLine(clientInfo.pcName + \" - \" + clientInfo.ipAndRemoteEndPoint + \" -\u003e \" + message);\n        }\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaglargul52%2Fadvanced-tcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaglargul52%2Fadvanced-tcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaglargul52%2Fadvanced-tcp/lists"}