Skip to content

📡 TCP Receiver Implementation with ByteStream and Reassembler

License

Notifications You must be signed in to change notification settings

notkartikye/tcp-receiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP Receiver Implementation

This project implements a TCP receiver, decomposed into three primary components: a ByteStream class, a Reassembler class, and the TCP Receiver itself.

Project Structure

  • ByteStream: Handles reading and writing of bytes in a finite stream with a specified capacity.
  • Reassembler: Reassembles out-of-order segments received from a sender into a contiguous byte stream.
  • TCP Receiver: Integrates the ByteStream and Reassembler, handling TCP segments and generating appropriate acknowledgments.

Getting Started

  1. Clone the repository:

    git clone https://github.com/notkartikye/tcp-receiver.git
    cd tcp-receiver
  2. Navigate to the build directory:

    cd build
  3. Configure and build the project:

    cmake ..
    make
  4. After building the project, you can run test cases with ctest:

    ctest
  5. To run the TCP receiver, execute the following command in the build directory:

    ./tcp_receiver

About

📡 TCP Receiver Implementation with ByteStream and Reassembler

Resources

License

Stars

Watchers

Forks