{"id":19258264,"url":"https://github.com/pasan-pahasara/socket-programming-basic","last_synced_at":"2025-04-11T14:42:13.737Z","repository":{"id":49854065,"uuid":"518374216","full_name":"Pasan-Pahasara/Socket-Programming-Basic","owner":"Pasan-Pahasara","description":"A socket is a software endpoint that can create a bidirectional communication channel between a server and a client. ","archived":false,"fork":false,"pushed_at":"2022-08-03T11:22:37.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T10:51:08.667Z","etag":null,"topics":["java","socket-programming"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Pasan-Pahasara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-27T08:32:32.000Z","updated_at":"2023-03-21T02:47:32.000Z","dependencies_parsed_at":"2022-09-01T16:52:02.281Z","dependency_job_id":null,"html_url":"https://github.com/Pasan-Pahasara/Socket-Programming-Basic","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/Pasan-Pahasara%2FSocket-Programming-Basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pasan-Pahasara%2FSocket-Programming-Basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pasan-Pahasara%2FSocket-Programming-Basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pasan-Pahasara%2FSocket-Programming-Basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pasan-Pahasara","download_url":"https://codeload.github.com/Pasan-Pahasara/Socket-Programming-Basic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248420244,"owners_count":21100344,"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":["java","socket-programming"],"created_at":"2024-11-09T19:12:52.056Z","updated_at":"2025-04-11T14:42:13.667Z","avatar_url":"https://github.com/Pasan-Pahasara.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socket-Programming-Basic\n Here, we are going to make one-way `client` and `server` communication. In this application, `client` sends a message to the `server`, `server` reads the message and prints it. Here, two classes are being used: \u003cstrong\u003eSocket\u003c/strong\u003e and \u003cstrong\u003eServerSocket\u003c/strong\u003e. \n \u003cbr\u003e\n \u003cbr\u003e\n The \u003cstrong\u003eSocket\u003c/strong\u003e class is used to communicate `client` and `server`. Through this class, we can read and write message. The \u003cstrong\u003eServerSocket\u003c/strong\u003e class is used at `server-side`. The \u003ccode\u003eaccept()\u003c/code\u003e method of \u003cstrong\u003eServerSocket\u003c/strong\u003e class blocks the console until the `client` is connected. After the successful connection of `client`, it returns the instance of \u003cstrong\u003eSocket\u003c/strong\u003e at `server-side`.\n\n### `Stocket-Programming`\n* Java\n* Stocket-Programming\n\n##\n![socket-programming](https://user-images.githubusercontent.com/88943660/182590770-b607372e-68fb-436c-aecb-ed2653811c7e.png)\n\n##\n\n`* Simple Chat Application with UI`\n##\n![Screenshot 2022-08-03 165028](https://user-images.githubusercontent.com/88943660/182595918-c7c84d4f-14a0-4165-80f3-ca8aec6787b1.jpg)\n\n##\n\n#### Clone this repository ✅\n```md\nhttps://github.com/Pasan-Pahasara/Socket-Programming-Basic.git\n```\n###                                              \n###### If you think my code is good pleace drop a Star \u003cimg src=\"https://github.com/Pasan-Pahasara/md-alpha/blob/main/star.webp\" width=\"40px\"\u003e\n\n![GitHub issues](https://img.shields.io/github/issues/Pasan-Pahasara/Socket-Programming-Basic?\u0026labelColor=black\u0026color=eb3b5a\u0026label=Issues\u0026logo=issues\u0026logoColor=black\u0026style=for-the-badge)\n![GitHub Contributions](https://img.shields.io/github/contributors/Pasan-Pahasara/Socket-Programming-Basic?\u0026labelColor=black\u0026color=8854d0\u0026style=for-the-badge)\n\n### License 📝\n[![GitHub license](https://img.shields.io/github/license/Pasan-Pahasara/Socket-Programming-Basic?\u0026labelColor=black\u0026color=3867d6\u0026style=for-the-badge)](https://github.com/Pasan-Pahasara/Room-Reservation-System/blob/master/LICENSE)\n\u003cdiv align=\"center\"\u003e\n\n![repo size](https://img.shields.io/github/repo-size/Pasan-Pahasara/Socket-Programming-Basic?label=Repo%20Size\u0026style=for-the-badge\u0026labelColor=black\u0026color=20bf6b)\n \n![GitHub forks](https://img.shields.io/github/forks/Pasan-Pahasara/Socket-Programming-Basic?\u0026labelColor=black\u0026color=0fb9b1\u0026style=for-the-badge)\n![GitHub stars](https://img.shields.io/github/stars/Pasan-Pahasara/Socket-Programming-Basic?\u0026labelColor=black\u0026color=f7b731\u0026style=for-the-badge)\n![GitHub LastCommit](https://img.shields.io/github/last-commit/Pasan-Pahasara/Socket-Programming-Basic?logo=github\u0026labelColor=black\u0026color=d1d8e0\u0026style=for-the-badge)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e \nIf you have any questions or just wanna say hi, \u003cbr\u003e\u003cb\u003eMAIL ME\u003c/b\u003e\u0026nbsp;\n  \u003ca href=\"mailto:pasanpahasara7788@gmail.com\"\u003e\n      \u003cimg width=\"20px\" src=\"https://github.com/Pasan-Pahasara/md-alpha/blob/main/gmail.svg\" /\u003e\n  \u003c/a\u003e\u003c/p\u003e\n \n \u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e \n \n#### Developed by [Pasan Pahasara](https://github.com/Pasan-Pahasara/) \n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasan-pahasara%2Fsocket-programming-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasan-pahasara%2Fsocket-programming-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasan-pahasara%2Fsocket-programming-basic/lists"}