{"id":29182633,"url":"https://github.com/ngthecoder/local_chat_messenger","last_synced_at":"2025-07-01T20:07:03.587Z","repository":{"id":301812061,"uuid":"1010385457","full_name":"ngthecoder/local_chat_messenger","owner":"ngthecoder","description":"Go implementation of UDP client-server chat application. Demonstrates connectionless socket programming, concurrent UDP handling, and Go networking patterns with automatic port selection and real-time bidirectional messaging.","archived":false,"fork":false,"pushed_at":"2025-06-29T00:44:14.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T01:37:05.242Z","etag":null,"topics":["golang","socket-programming","udp"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ngthecoder.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,"zenodo":null}},"created_at":"2025-06-29T00:36:44.000Z","updated_at":"2025-06-29T00:53:46.000Z","dependencies_parsed_at":"2025-06-29T01:37:07.510Z","dependency_job_id":"eebfa752-95c5-41d1-8de8-ab66434c8338","html_url":"https://github.com/ngthecoder/local_chat_messenger","commit_stats":null,"previous_names":["ngthecoder/local_chat_messenger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ngthecoder/local_chat_messenger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Flocal_chat_messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Flocal_chat_messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Flocal_chat_messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Flocal_chat_messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngthecoder","download_url":"https://codeload.github.com/ngthecoder/local_chat_messenger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngthecoder%2Flocal_chat_messenger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263029212,"owners_count":23402354,"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":["golang","socket-programming","udp"],"created_at":"2025-07-01T20:07:02.081Z","updated_at":"2025-07-01T20:07:03.553Z","avatar_url":"https://github.com/ngthecoder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Local Chat Messenger (Implmeneted in Go)\nA simple UDP-based client-server chat application built with Go. This project demonstrates UDP socket programming, concurrent connections, and bidirectional communication.\n\n## Features\n- **UDP Socket Communication**: Connectionless messaging between clients and server\n- **Multiple Concurrent Clients**: Server can handle multiple clients simultaneously\n- **Bidirectional Chat**: Clients can send messages and receive responses from the server\n- **Automatic Port Selection**: Client ports are automatically assigned by the OS\n- **Echo Server**: Server responds with echoed messages plus confirmation text\n\n## Server \u0026 Client Description\n### Server\n- Listens on `127.0.0.1:8090` for incoming UDP messages\n- Receives messages from any number of clients\n- Responds with echoed message plus \"(echoing from server)\" suffix\n- Displays client IP and port for each received message\n\n### Client\n- Connects to server at `127.0.0.1:8090`\n- Uses automatically assigned local port (via `nil` local address)\n- Sends user input to server and displays server responses\n- Supports graceful exit with \"exit\" command\n\n## Getting Started\n### Prerequisites\nGo 1.16 or higher\n\n### Running the Application\n1. **Clone the repository**\n   ```bash\n   git clone \u003cyour-repo-url\u003e\n   cd local_chat_messenger\n   ```\n\n2. **Start the server** (in first terminal)\n   ```bash\n   go run main.go server.go client.go server\n   ```\n\n3. **Start client(s)** (in separate terminal(s))\n   ```bash\n   go run main.go server.go client.go client\n   ```\n\n4. **Chat away!**\n   - Type messages in the client terminal\n   - See echoed responses from the server\n   - Type \"exit\" to close connections\n\n### Testing Multiple Clients\nOpen multiple terminals and run the client command in each. All clients can communicate with the server simultaneously.\n\n## Example Usage\n**Server Output:**\n```\n127.0.0.1(54321): hello server\n127.0.0.1(54322): how are you?\n127.0.0.1(54321): i'm doing great\n```\n\n**Client Output:**\n```\nType your message: hello server\n127.0.0.1(8090): hello server (echoing from server)\nType your message: how are you?\n127.0.0.1(8090): how are you? (echoing from server)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthecoder%2Flocal_chat_messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngthecoder%2Flocal_chat_messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngthecoder%2Flocal_chat_messenger/lists"}