>

libtransport

#Overview

libtransport is the solution to Project 1. If you just modified transport.c for your project solution, you may hot swap it in instead of libtransport (unrecommended since there might be some implementation details that you’ve missed).

#listen_loop

void listen_loop(int sockfd, struct sockaddr_in* addr, int initial_state,
                 ssize_t (*input_p)(uint8_t*, size_t),
                 void (*output_p)(uint8_t*, size_t));

An ever running loop where the transport layer continously runs the Project 1 protocol to send and receive data.

#Parameters

#Returns

Never.