Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TPF
jacktrip
Commits
7ffa8447
Commit
7ffa8447
authored
Apr 25, 2008
by
jcaceres
Browse files
Fix small couts
parent
514cc892
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/StreamBD.cpp
View file @
7ffa8447
...
...
@@ -511,10 +511,10 @@ StreamBD::ParseCommandLine (int argc, char *argv[])
if
(
argc
>
1
)
{
/* Copy remote hostname */
strncpy
(
args
->
localHostIP
,
argv
[
0
],
99
);
cout
<<
"local
hostname
is "
<<
args
->
cout
<<
"local
IPv6
is "
<<
args
->
localHostIP
<<
endl
;
strncpy
(
args
->
remoteHostname
,
argv
[
1
],
99
);
cout
<<
"remote
hostname
is "
<<
args
->
cout
<<
"remote
IPv6
is "
<<
args
->
remoteHostname
<<
endl
;
}
else
if
(
argc
>
0
)
...
...
@@ -538,7 +538,7 @@ StreamBD::ParseCommandLine (int argc, char *argv[])
if
(
argc
>
0
)
{
/* Copy remote hostname */
strncpy
(
args
->
localHostIP
,
argv
[
0
],
99
);
cout
<<
"local
hostname
is "
<<
args
->
cout
<<
"local
IPv6
is "
<<
args
->
localHostIP
<<
endl
;
}
}
...
...
@@ -642,10 +642,8 @@ StreamBD::EstablishConnection (runModeT runMode, char *hostname, UDPOutput * net
usleep
(
10000
);
// cout << ".";
}
//**************JPC COMENTED OUT*******************
//cout << endl << "Connection received from: " <<
// netin->peer ().toString () << endl;
//*************************************************
cout
<<
endl
<<
"Connection received from: "
<<
netin
->
peer
().
toString
().
latin1
()
<<
endl
;
cout
<<
"Requesting return connection...."
;
netout
->
connect
(
netin
->
peer
());
cout
<<
"SUCCESS!"
<<
endl
;
...
...
src/StreamBD.h
View file @
7ffa8447
...
...
@@ -114,7 +114,7 @@ typedef struct cmdLineArgs
* audio output is buffered. */
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 IP
v6
to connect to in TRANSMIT and HARPT mode. */
//**IPv6*******
//###############################################################################################################
int
networkPortOffset
;
/*! Network port offset. */
int
audioDeviceID
;
/*! Will use default audio device if not specified. */
...
...
src/circularbuffer.cpp
View file @
7ffa8447
...
...
@@ -41,7 +41,7 @@ maxSeq (maxSeq)
prepareReaderWriter
();
dataLock
=
new
QSemaphore
(
1
);
cout
<<
(
*
dataLock
).
available
()
<<
" FDF SDFJSDIF JSDFIJ DSIFJSDOI JOSI"
<<
endl
;
//
cout << (*dataLock).available() << " FDF SDFJSDIF JSDFIJ DSIFJSDOI JOSI" << endl;
secondTry
=
false
;
}
...
...
src/udp_input.cpp
View file @
7ffa8447
...
...
@@ -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
;
//#############################################################
}
...
...
src/udp_output.cpp
View file @
7ffa8447
...
...
@@ -65,7 +65,11 @@ audInfo (audInfo)
<< " 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment