{"id":23384390,"url":"https://github.com/michal34512/tcp-connection","last_synced_at":"2025-06-13T06:32:05.588Z","repository":{"id":181339099,"uuid":"666610511","full_name":"michal34512/TCP-Connection","owner":"michal34512","description":"This is a basic C# implementation of a TCP connection between two hosts","archived":false,"fork":false,"pushed_at":"2023-07-15T02:17:41.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T11:17:46.943Z","etag":null,"topics":["connection","messages","tcp","tcp-client","tcp-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michal34512.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-15T01:54:48.000Z","updated_at":"2024-07-01T04:03:10.000Z","dependencies_parsed_at":"2023-07-15T03:45:47.860Z","dependency_job_id":null,"html_url":"https://github.com/michal34512/TCP-Connection","commit_stats":null,"previous_names":["michal34512/tcp-connection"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/michal34512/TCP-Connection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FTCP-Connection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FTCP-Connection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FTCP-Connection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FTCP-Connection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michal34512","download_url":"https://codeload.github.com/michal34512/TCP-Connection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michal34512%2FTCP-Connection/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259594300,"owners_count":22881639,"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":["connection","messages","tcp","tcp-client","tcp-server"],"created_at":"2024-12-21T23:19:44.398Z","updated_at":"2025-06-13T06:32:05.001Z","avatar_url":"https://github.com/michal34512.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCP Connection\nSimple connetion between two hosts based on TCP protocol.\n\n# Establishing connection\nServer:\n```diff\n# Starting server\n  Connection.Port = 7777;\n  Connection.Start_Connection(Connection.ConnectionRole.Server);\n```\nClient:\n```diff\n# Connecting to server\n  Connection.Port = 7777;\n  Connection.IpServ = \"127.0.0.1\";\n  Connection.Start_Connection(Connection.ConnectionRole.Client);\n```\n\n# Sending \u0026 receiving messages\nSending:\n```diff\n# Sending messages\n  string mess = Console.ReadLine();\n  Connection.SendMessage(Encoding.UTF8.GetBytes(mess));\n```\nReceiving:\n```diff\n# Receive messages\n  List\u003cbyte[]\u003e messages = Connection.ReceiveMessages();\n  if (messages != null)\n      foreach (byte[] mess in messages)\n      {\n          Console.WriteLine(Encoding.UTF8.GetString(mess));\n      }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichal34512%2Ftcp-connection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichal34512%2Ftcp-connection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichal34512%2Ftcp-connection/lists"}