#include <cstdlib>#include <ccrtp/rtp.h>Go to the source code of this file.
Classes | |
| class | Sender |
| This class sends an RTP Packet. More... | |
Functions | |
| int | main (int argc, char *argv[]) |
|
||||||||||||
|
Definition at line 71 of file rtpsend.cpp. 00072 { 00073 cout << "rtpsend..." << endl; 00074 00075 if (argc != 6) { 00076 cerr << "Syntax: " << "data host port timestamp count" << endl; 00077 exit(1); 00078 } 00079 00080 Sender sender((unsigned char *)argv[1], InetHostAddress(argv[2]), 00081 atoi(argv[3]), atoi(argv[4]), atoi(argv[5])); 00082 00083 cout << "I have sent " << argv[5] 00084 << " RTP packets containing \"" << argv[1] 00085 << "\", with timestamp " << argv[4] 00086 << " to " << argv[2] << ":" << argv[3] 00087 << endl; 00088 return 0; 00089 }
|