Recreation of the Unix function "tcp_send/receive and udp_send/receive" for ECE357