Commit 7ffa8447 authored by jcaceres's avatar jcaceres
Browse files

Fix small couts

parent 514cc892
...@@ -511,10 +511,10 @@ StreamBD::ParseCommandLine (int argc, char *argv[]) ...@@ -511,10 +511,10 @@ StreamBD::ParseCommandLine (int argc, char *argv[])
if (argc > 1) if (argc > 1)
{ /* Copy remote hostname */ { /* Copy remote hostname */
strncpy (args->localHostIP, argv[0], 99); strncpy (args->localHostIP, argv[0], 99);
cout << "local hostname is " << args-> cout << "local IPv6 is " << args->
localHostIP << endl; localHostIP << endl;
strncpy (args->remoteHostname, argv[1], 99); strncpy (args->remoteHostname, argv[1], 99);
cout << "remote hostname is " << args-> cout << "remote IPv6 is " << args->
remoteHostname << endl; remoteHostname << endl;
} }
else if (argc > 0) else if (argc > 0)
...@@ -538,7 +538,7 @@ StreamBD::ParseCommandLine (int argc, char *argv[]) ...@@ -538,7 +538,7 @@ StreamBD::ParseCommandLine (int argc, char *argv[])
if (argc > 0) if (argc > 0)
{ /* Copy remote hostname */ { /* Copy remote hostname */
strncpy (args->localHostIP, argv[0], 99); strncpy (args->localHostIP, argv[0], 99);
cout << "local hostname is " << args-> cout << "local IPv6 is " << args->
localHostIP << endl; localHostIP << endl;
} }
} }
...@@ -642,10 +642,8 @@ StreamBD::EstablishConnection (runModeT runMode, char *hostname, UDPOutput * net ...@@ -642,10 +642,8 @@ StreamBD::EstablishConnection (runModeT runMode, char *hostname, UDPOutput * net
usleep (10000); usleep (10000);
// cout << "."; // cout << ".";
} }
//**************JPC COMENTED OUT******************* cout << endl << "Connection received from: " <<
//cout << endl << "Connection received from: " << netin->peer().toString().latin1() << endl;
// netin->peer ().toString () << endl;
//*************************************************
cout << "Requesting return connection...."; cout << "Requesting return connection....";
netout->connect (netin->peer ()); netout->connect (netin->peer ());
cout << "SUCCESS!" << endl; cout << "SUCCESS!" << endl;
......
...@@ -114,7 +114,7 @@ typedef struct cmdLineArgs ...@@ -114,7 +114,7 @@ typedef struct cmdLineArgs
* audio output is buffered. */ * audio output is buffered. */
char remoteHostname[100]; /*! Holds the hostname to connect to in TRANSMIT and HARPT mode. */ char remoteHostname[100]; /*! Holds the hostname to connect to in TRANSMIT and HARPT mode. */
//############################################################################################################### //###############################################################################################################
char localHostIP[100]; /*! Holds the IP to connect to in TRANSMIT and HARPT mode. */ //**IPv6******* char localHostIP[100]; /*! Holds the IPv6 to connect to in TRANSMIT and HARPT mode. */ //**IPv6*******
//############################################################################################################### //###############################################################################################################
int networkPortOffset; /*! Network port offset. */ int networkPortOffset; /*! Network port offset. */
int audioDeviceID; /*! Will use default audio device if not specified. */ int audioDeviceID; /*! Will use default audio device if not specified. */
......
...@@ -41,7 +41,7 @@ maxSeq (maxSeq) ...@@ -41,7 +41,7 @@ maxSeq (maxSeq)
prepareReaderWriter (); prepareReaderWriter ();
dataLock = new QSemaphore (1); dataLock = new QSemaphore (1);
cout << (*dataLock).available() << " FDF SDFJSDIF JSDFIJ DSIFJSDOI JOSI" << endl; //cout << (*dataLock).available() << " FDF SDFJSDIF JSDFIJ DSIFJSDOI JOSI" << endl;
secondTry = false; secondTry = false;
} }
......
...@@ -62,7 +62,9 @@ InputPlugin ("UDP Input"), netInfo (netInfo), audInfo (audInfo) ...@@ -62,7 +62,9 @@ InputPlugin ("UDP Input"), netInfo (netInfo), audInfo (audInfo)
*/ */
//********************************************************** //**********************************************************
//############################################################# //#############################################################
cout << "IPv6 Local Address: " << ha->toString().latin1() << endl;//*****IPv6************* //cout << "IPv6 Local Address: " << ha->toString().latin1() << endl;//*****IPv6*************
cout << endl << "UDPInput binding to " << ha->toString().latin1()
<< " port " << netInfo->getInPort () << endl;
//############################################################# //#############################################################
} }
......
...@@ -65,7 +65,11 @@ audInfo (audInfo) ...@@ -65,7 +65,11 @@ audInfo (audInfo)
<< " port " << netInfo->getOutPort () << endl; << " port " << netInfo->getOutPort () << endl;
*/ */
//********************************************************** //**********************************************************
cout << "IPv6 Local Address: " << ha->toString().latin1() << endl; //#############################################################
//cout << "IPv6 Local Address: " << ha->toString().latin1() << endl;
cout << endl << "UDPOuput binding to " << ha->toString().latin1()
<< " port " << netInfo->getOutPort () << endl;
//#############################################################
} }
void void
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment