TCP packet transmission time and frequency

519 views Asked by At

I am developing a application in linux about TCP packets transmission. Here is a function I may design: sender(time,packet_size,frequency,file). Parameter time stands for "How long it takes to transmit packets in second"; packet_size: "size of packet in KB"; frequency: "How many packets per second"; file: "a file to be transmitted". I am wondering where can I find the function or option or struct etc to implement this time and frequency control? And for the packet transmission in TCP, should I use socket(AF_INET,SOCK_RAW,0) or socket(AF_PACKET,SOCK_RAW,0) or any other option? I am fresher in linux programming, thanks for helping!!!

0

There are 0 answers