{"id":27598070,"url":"https://github.com/mahraibfatima/clientserver_messenger","last_synced_at":"2025-04-22T14:10:28.769Z","repository":{"id":288945962,"uuid":"969585103","full_name":"MahraibFatima/clientServer_Messenger","owner":"MahraibFatima","description":"client-server model using Java socket programming.","archived":false,"fork":false,"pushed_at":"2025-04-20T15:46:51.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T16:34:12.301Z","etag":null,"topics":["client-server","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MahraibFatima.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-04-20T13:42:42.000Z","updated_at":"2025-04-20T15:48:24.000Z","dependencies_parsed_at":"2025-04-20T16:44:15.990Z","dependency_job_id":null,"html_url":"https://github.com/MahraibFatima/clientServer_Messenger","commit_stats":null,"previous_names":["mahraibfatima/clientserver_messenger"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahraibFatima%2FclientServer_Messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahraibFatima%2FclientServer_Messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahraibFatima%2FclientServer_Messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahraibFatima%2FclientServer_Messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahraibFatima","download_url":"https://codeload.github.com/MahraibFatima/clientServer_Messenger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250255700,"owners_count":21400410,"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":["client-server","java","socket-programming"],"created_at":"2025-04-22T14:10:27.989Z","updated_at":"2025-04-22T14:10:28.763Z","avatar_url":"https://github.com/MahraibFatima.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Client-Server Chat Application\n\nThis project demonstrates a basic client-server communication model using Java socket programming. The client sends a message to the server, which responds with an acknowledgment.\n\n## Components\n\n1. **Client (`clientChat.java`)**: Sends a message to the server and displays the response.\n2. **Server (`serverChat.java`)**: Receives the client’s message and responds.\n\n---\n\n## Features\n\n- **Bidirectional Communication**: Client sends a message; server acknowledges it.\n- **Socket Programming**: Uses `Socket` and `ServerSocket` classes for communication.\n- **Buffered I/O**: Efficient data transfer using `BufferedReader` and `PrintWriter`.\n\n---\n\n## How to Run\n\n### Prerequisites\n- Java Development Kit (JDK) installed.\n\n### Steps\n1. Compile the files:\n   ```bash\n   javac clientChat.java serverChat.java\n   ```\n2. Start the server:\n   ```bash\n   java serverChat\n   ```\n3. Start the client in another terminal:\n   ```bash\n   java clientChat\n   ```\n4. Enter a message in the client terminal and observe the interaction.\n\n---\n\n## Example\n\n### Server Output\n```\nServer is working...\nConnection Established!\nClient says: Hello, Server!\n```\n\n### Client Output\n```\nClient is waiting...\nEnter your message:\nHello, Server!\nServer says: Hello, Server!\n```\n\n---\n\n## Notes\n\n- **Port**: Ensure port `9806` is free.\n- **Same Network**: Client and server should run on the same machine or accessible network.\n\n---\n\n\nThis project serves as a straightforward introduction to Java socket programming.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahraibfatima%2Fclientserver_messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahraibfatima%2Fclientserver_messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahraibfatima%2Fclientserver_messenger/lists"}