Coder Social home page Coder Social logo

javasocketchat's Introduction

Java Socket Chat

This is a sample project that demonstrates the creation of a simple Java chat application using socket communication. The project is divided into server and client components, allowing users to communicate in real-time.

Table of Contents

Authors

Features

  • Clients and server communicate via TCP/IP sockets.
  • Clients can connect to the server and exchange messages.
  • Each message includes sender information, content, and timestamp.

Project Structure

src
├── server
│   ├── ChatServer.java
│   └── ServerMain.java
├── client
│   ├── ChatClient.java
│   └── ClientMain.java
└── utils
    └── Message.java

Getting Started

  1. Compile the server and client classes.

    javac server/*.java
    javac client/*.java
  2. Start the server.

    java server.ServerMain
  3. Start one or more clients.

    java client.ClientMain

Notes

  • Make sure the server is running before starting clients.
  • Exchanged messages are displayed in the console.
  • This is a sample project and can be extended with additional features and enhancements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

javasocketchat's People

Contributors

math-silva avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.