Skip to content

Commit

Permalink
fzmotion bugfixes (received via E-Mail from the vendor)
Browse files Browse the repository at this point in the history
  • Loading branch information
whoenig committed Sep 5, 2024
1 parent 251b6c6 commit 53d759c
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 240 deletions.
6 changes: 2 additions & 4 deletions src/fzmotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ namespace libmotioncapture {
this->m_strRemoteIP = strRemoteIP;
this->m_iRemoteCPort = iRemotePort;

cout << this->m_strLocalIP << this->m_iLocalCPort << endl;
this->m_localCEndpoint = udp::endpoint(address_v4::from_string(this->m_strLocalIP), this->m_iLocalCPort);

cout << this->m_strRemoteIP << this->m_iRemoteCPort << endl;
udp::resolver::query query(udp::v4(), this->m_strRemoteIP, std::to_string(this->m_iRemoteCPort));
this->m_remoteCEndpoint = *this->m_Resolver.resolve(query);

Expand Down Expand Up @@ -153,14 +151,14 @@ namespace libmotioncapture {
cout << "Receved package is not tag list." << endl;
continue;
}
//parse received data
parseRigidbodyTagList(pBuffer, this->m_mapRigidbodyTagList);
bTagListReceived = true;
requestTagList.detach();
EmptyBuffer(pBuffer, MAX_PACKET_SIZE);
break;
};

//parse received data
parseRigidbodyTagList(pBuffer, this->m_mapRigidbodyTagList);
ReleaseBuffer(pBuffer);

//joint multicast group
Expand Down
Loading

0 comments on commit 53d759c

Please sign in to comment.