Sponge
CS144's user-space TCP library
Functions | Variables
tcp_udp.cc File Reference
#include "bidirectional_stream_copy.hh"
#include "tcp_config.hh"
#include "tcp_sponge_socket.hh"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <limits>
#include <random>
#include <string>
#include <tuple>
Include dependency graph for tcp_udp.cc:

Go to the source code of this file.

Functions

static void check_argc (int argc, char **argv, int curr, const char *err)
 
static tuple< TCPConfig, FdAdapterConfig, bool > get_config (int argc, char **argv)
 
int main (int argc, char **argv)
 
static void show_usage (const char *argv0, const char *msg)
 

Variables

constexpr uint16_t DPORT_DFLT = 1440
 

Function Documentation

◆ check_argc()

static void check_argc ( int  argc,
char **  argv,
int  curr,
const char *  err 
)
static

Definition at line 42 of file tcp_udp.cc.

◆ get_config()

static tuple<TCPConfig, FdAdapterConfig, bool> get_config ( int  argc,
char **  argv 
)
static

Definition at line 49 of file tcp_udp.cc.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 106 of file tcp_udp.cc.

◆ show_usage()

static void show_usage ( const char *  argv0,
const char *  msg 
)
static

Definition at line 17 of file tcp_udp.cc.

Variable Documentation

◆ DPORT_DFLT

constexpr uint16_t DPORT_DFLT = 1440
constexpr

Definition at line 15 of file tcp_udp.cc.