Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VANet
Commits
fa980027
Commit
fa980027
authored
Oct 08, 2020
by
Dipl.-Ing. Jonas Stienen
Browse files
Adding more debug print lines part 3
parent
209ab551
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/VANetServerImpl.cpp
View file @
fa980027
...
...
@@ -187,9 +187,21 @@ public:
inline
bool
LoopBody
()
{
#ifdef VANET_SERVER_VERBOSE
std
::
cout
<<
"[ VANetServer ] Loop body enter"
<<
std
::
endl
;
#endif
int
nUpdateID
=
m_oConnMultiplexer
.
Demultiplex
();
#ifdef VANET_SERVER_VERBOSE
std
::
cout
<<
"[ VANetServer ] Received an update id "
<<
nUpdateID
<<
" and there are "
<<
m_mapConnections
.
size
()
<<
" available connections"
<<
std
::
endl
;
#endif
if
(
nUpdateID
==
0
)
{
return
false
;
}
else
if
(
nUpdateID
<
0
)
{
std
::
cerr
<<
"VA Server: Connection Observer encountered Demultiplex error"
<<
std
::
endl
;
...
...
@@ -216,6 +228,14 @@ public:
std
::
cerr
<<
"VA Server: caught exception and will disconnect now ("
<<
e
<<
")"
<<
std
::
endl
;
m_pParent
->
RemoveClient
(
m_mapConnections
[
nUpdateID
],
CVANetNetworkProtocol
::
VA_NET_SERVER_DISCONNECT
);
}
catch
(
...
)
{
#ifdef VANET_SERVER_VERBOSE
std
::
cout
<<
"[ VANetServer ] Caught unkown exception."
<<
std
::
endl
;
#endif
}
#else
catch
(
CVAException
&
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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