Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VANet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
VANet
Commits
62491c92
Commit
62491c92
authored
Feb 08, 2017
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating cmake, version, relaxing condition for network gathering loop on receive message
parent
191cbbb3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+1
-1
src/VANetMessage.cpp
src/VANetMessage.cpp
+2
-2
No files found.
CMakeLists.txt
View file @
62491c92
...
...
@@ -6,7 +6,7 @@ list( APPEND CMAKE_MODULE_PATH "$ENV{VISTA_CMAKE_COMMON}" )
include
(
VistaCommon
)
if
(
NOT DEFINED ITA_VANET_VERSION_MAJOR
)
set
(
ITA_VANET_VERSION_MAJOR
"v201
6
"
CACHE STRING
"VANet version major (usually 'v' and year)"
)
set
(
ITA_VANET_VERSION_MAJOR
"v201
7
"
CACHE STRING
"VANet version major (usually 'v' and year)"
)
endif
(
)
if
(
NOT DEFINED ITA_VANET_VERSION_MINOR
)
...
...
src/VANetMessage.cpp
View file @
62491c92
...
...
@@ -124,7 +124,7 @@ void CVANetMessage::ReadMessage()
m_vecIncomingBuffer
.
resize
(
nMessageSize
);
int
iBytesReceivedTotal
=
0
;
while
(
nMessageSize
!=
iBytesReceivedTotal
)
while
(
nMessageSize
>
iBytesReceivedTotal
)
{
int
iIncommingBytes
=
m_pConnection
->
WaitForIncomingData
(
0
);
int
iBytesReceived
=
m_pConnection
->
ReadRawBuffer
(
&
m_vecIncomingBuffer
[
iBytesReceivedTotal
],
iIncommingBytes
);
...
...
@@ -222,7 +222,7 @@ void CVANetMessage::ReadAnswer()
m_vecIncomingBuffer
.
resize
(
nMessageSize
);
int
iBytesReceivedTotal
=
0
;
while
(
nMessageSize
!=
iBytesReceivedTotal
)
while
(
nMessageSize
>
iBytesReceivedTotal
)
{
int
iIncommingBytes
=
m_pConnection
->
WaitForIncomingData
(
0
);
int
iBytesReceived
=
m_pConnection
->
ReadRawBuffer
(
&
m_vecIncomingBuffer
[
iBytesReceivedTotal
],
iIncommingBytes
);
...
...
Write
Preview
Markdown
is supported
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