Git Product home page Git Product logo

tcpchat's Introduction

tcpchat

tcpchat is a Go-based chat server that utilizes TCP connections to facilitate communication between users. It provides functionality for user registration, maintains a user IP map, allows the creation of groups, and efficiently routes messages to other clients.

Untitled-2024-05-05-1539

Features

  • User Registration: Users can register themselves on the chat server.
  • User IP Map: Maintains a mapping of users to their respective IP addresses.
  • Group Creation: Users can create groups for specific discussions.
  • Message Routing: Efficiently routes messages to appropriate clients based on their intended recipients.

Design/Plan

Here's an overview of the overall design

Following diagram illustrates the actions to be performed upon receiving messages conforming to these specific formats, and also covers the database design

Screenshot 2024-05-06 at 8 03 33 PM

Here are the various channels to be used for communication across goroutines, and hence... users 😊

Screenshot 2024-05-09 at 12 55 40 AM

Demo

Here's a quick demo

Untitled.1.1.mp4

https://www.veed.io/view/e3befc40-1007-44aa-80ba-bc3c7b364df8?panel=share

Group Chat

Screenshot 2024-05-09 at 10 24 32 PM

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvements, please feel free to open an issue or submit a pull request.

License

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

tcpchat's People

Contributors

ashupednekar avatar

Watchers

 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.