I'm trying to work with rtpsend and rtplisten in Win2000. I did some changes in main() functions and they don't work. The problem is that I can't recieve any packet, although rtpsend sends them.
My main() functions are:
/********RTPSEND**********/
int
main(int argc, char *argv[])
{
cout << "rtpsend..." << endl;
char datos[200], dir[16];
char tstamp[18];
char packets[18];
char port[18]; strcpy(datos, "Un saludo, majos");
strcpy(dir, "158.227.66.64");
strcpy(tstamp, "1000");
strcpy(port, "3333");
strcpy(packets, "10"); /*if (argc != 6) {
cerr << "Syntax: " << "data host port timestamp count" << endl;
exit(1);
}*/ Sender sender((unsigned char *)datos, InetHostAddress(dir),
atoi(tstamp), atoi(tstamp), atoi(packets)); cout << "I have sent " << packets
<< " RTP packets containing \"" << datos
<< "\", with timestamp " << tstamp
<< " to " << dir << ":" << port
<< endl;
getch();
return 0;
}/*************RTPLISTEN***************/
int
main(int argc, char *argv[])
{
cout << "rtplisten" << endl; /*if (argc != 3) {
cerr << "Syntax: " << " ip port" << endl;
exit(1);
}*/char dir[16], puerto[16];
strcpy(dir, "158.227.66.64");
strcpy(puerto, "3333"); InetMcastAddress ima;
try {
ima = InetMcastAddress(dir);
} catch (...) { } Listener *foo;
tpport_t port = atoi(puerto);
if ( ima.isInetAddress() ) {
foo = new Listener(ima,port);
cout << "Listening on multicast address " << ima << ":" <<
port << endl;
} else {
InetHostAddress ia(dir);
foo = new Listener(ia,atoi(puerto));
cout << "Listening on unicast address " << ia << ":" <<
port << endl;
}
cout << "Press Ctrl-C to finish." << endl;
foo->listen();
delete foo;
return 0;
}In RTPSEND program, it is what displays the monitor:
rtpsend...
My SSRC identifier is: 813147ed
I have sent 10 RTP packets containing: "Un saludo, majos", with timestamp 1000 to 158.227.66.64:3333
And in RTPLISTEN
rtplisten Listening on unicast address 158.227.66.64:3333 Press Control-C to finish. My SSRC identifier is: ed589715
I tried to change listen port with 3332, but it doesn't work too.
Thanks for your replies.
MARIO
_______________________________________________ Ccrtp-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/ccrtp-devel
