From: Brian G. <ge...@us...> - 2006-05-04 23:20:13
|
Update of /cvsroot/playerstage/code/player/utils/playerprint In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22891/utils/playerprint Modified Files: playerprint.cc Log Message: added libplayerudp Index: playerprint.cc =================================================================== RCS file: /cvsroot/playerstage/code/player/utils/playerprint/playerprint.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** playerprint.cc 28 Feb 2006 05:15:41 -0000 1.15 --- playerprint.cc 5 May 2006 06:20:00 -0000 1.16 *************** *** 90,93 **** --- 90,94 ---- int16_t g_index = 0; int16_t g_rate = 10; + uint32_t g_transport = PLAYERC_TRANSPORT_TCP; std::string g_device(""); *************** *** 108,112 **** { int ch=0, errflg=0; ! const char* optflags = "i:h:p:r:"; while((ch=getopt(argc, argv, optflags))!=-1) --- 109,113 ---- { int ch=0, errflg=0; ! const char* optflags = "i:h:p:r:t:"; while((ch=getopt(argc, argv, optflags))!=-1) *************** *** 128,131 **** --- 129,135 ---- g_rate = atoi(optarg); break; + case 't': + g_transport = atoi(optarg); + break; case '?': case ':': *************** *** 157,161 **** // connect to Player ! PlayerClient client(g_hostname, g_port); int code = client.LookupCode(g_device); --- 161,165 ---- // connect to Player ! PlayerClient client(g_hostname, g_port, g_transport); int code = client.LookupCode(g_device); |