Giter Site home page Giter Site logo

datachat's Introduction

Hi 👋, I'm Adem

A developer from Türkiye

  • 🔭 I’m currently working on Machine learning, AI and LLMs.

  • 📫 How to reach me [email protected]

📊 GitHub Stats:

✍️ Random Dev Quote

Connect with me:

ademclk ademclk ademonurclk ademclk 14983131 ademonurclk

datachat's People

Contributors

ademclk avatar

Stargazers

 avatar

Watchers

 avatar

datachat's Issues

Logging

All chat and messages should be written to a text file. The filename should be built from the current date, time, and user name, and the logs should be stored in a subdirectory called "logs".

Error Checking

The system should implement error checking algorithms to verify message integrity. The project description mentions Simple Parity Check, Two-dimensional Parity check, Checksum and Cyclic Redundancy Check (CRC).

Only use the implementations Simple Parity Check and Cyclic Redundancy Check (CRC).

Error checking methods

Update message structure.

sender username | Command Type | content | [Checking bits (Method 1)] [Checking bits (Method 2)]

Method1 = Parity Bity
Method2 = CRC

TCP Streaming/Segmentation issue

There’s a problem that when you send multiple messages to the client, they receive it as a single message.

This is a common issue with TCP, which is a stream-based protocol and does not guarantee that messages will arrive as sent. Instead, TCP guarantees that all bytes will arrive in the order they were sent.

This means that if we send two messages, "Hello" and "World", it's possible that the client will receive them as a single message, "HelloWorld". It causes an error while checking parity bits.

To handle this, implement a message framing protocol on top of TCP. One common method is to prefix each message with its length.

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.