packet send and receive demo coding by C
Firstly, you need to edit the src and dst info in send.c
Secondly, compile the send.c by gcc. Then run the program and enter the protocol(UDP/TCP), size of a packet, number of packets, period of sending process(unit:number of packets), sleep time of a period(microsecond) in terminal
Firstly, you need to edit the ip and port to be listend in receive.c
Secondly, compile the send.c by gcc. Then run the program and enter the protocol(UDP/TCP)