GithubHelp home page GithubHelp logo

message_oriented_tcp's Introduction

MyTCP Library

The MyTCP Library is a reliable and in-order message delivery software library that operates over standard TCP sockets. It ensures the accurate and sequential transmission and reception of messages up to 5000 bytes.

Features

  • Reliable and In-Order Delivery: Messages sent using the MyTCP protocol are guaranteed to be delivered reliably and in the same order they were sent, ensuring data integrity.

  • Utilization of POSIX Threads: The library leverages POSIX threads to enable concurrent execution of multiple threads, facilitating efficient handling of message transmission and reception.

  • Mutex Locks and Conditional Signals: Synchronized access to global message buffers is ensured through the use of mutex locks and conditional signals. This prevents data races and facilitates proper coordination among threads that access shared resources.

  • Graceful Closure: When closing the socket connection, all global data structures utilized by the MyTCP Library are cleared to maintain a clean state and prevent resource leaks.

Usage

To incorporate the MyTCP Library into your project, follow the steps below:

  1. Include the MyTCP Library in your project's source code or link it as a shared library.

  2. Initialize the MyTCP Library and establish a connection between the sender and receiver using standard TCP sockets.

  3. Utilize the provided API functions to send and receive messages using the MyTCP protocol. These functions handle reliable and in-order delivery of messages, ensuring data integrity.

  4. Close the socket connection appropriately, ensuring that all global data structures are cleared.

Requirements

For running this application we will need:

LinuxOS
gcc

How To Run

make
./server
./client
(run ./server and ./client in different terminals)

This project was made by Kriti Bhardwaj (20CS30028) and Vinod Meena (20CS10074)

message_oriented_tcp's People

Contributors

kritib23 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.