Skip to content

Commit

Permalink
#35 Use AmbeData sock_addr_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
F4FXL committed Dec 2, 2023
1 parent 4bd7345 commit 4227151
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Common/CCSProtocolHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bool CCCSProtocolHandler::writeData(const CAMBEData& data)
CUtils::dump("Sending Data", buffer, length);
#endif

return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
return m_socket.write(buffer, length, data.getYourAddressAndPort()); //data.getYourAddress(), data.getYourPort());
}

bool CCCSProtocolHandler::writePoll(const CPollData& poll)
Expand Down
2 changes: 1 addition & 1 deletion Common/DCSProtocolHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ bool CDCSProtocolHandler::writeData(const CAMBEData& data)
CUtils::dump("Sending Data", buffer, length);
#endif

return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
return m_socket.write(buffer, length, data.getYourAddressAndPort());
}

bool CDCSProtocolHandler::writePoll(const CPollData& poll)
Expand Down
2 changes: 1 addition & 1 deletion Common/DPlusProtocolHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ bool CDPlusProtocolHandler::writeAMBE(const CAMBEData& data)
CUtils::dump("Sending Data", buffer, length);
#endif

return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
return m_socket.write(buffer, length, data.getYourAddressAndPort());
}

bool CDPlusProtocolHandler::writePoll(const CPollData& poll)
Expand Down
2 changes: 1 addition & 1 deletion Common/HBRepeaterProtocolHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ bool CHBRepeaterProtocolHandler::writeAMBE(CAMBEData& data)
CUtils::dump("Sending Data", buffer, length);
return true;
#else
return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
return m_socket.write(buffer, length, data.getYourAddressAndPort());
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion DGWTextTransmit/TextTransmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,5 @@ bool CTextTransmit::sendData(const CAMBEData& data)
unsigned char buffer[40U];
unsigned int length = data.getG2Data(buffer, 40U);

return m_socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
return m_socket.write(buffer, length, data.getYourAddressAndPort());
}
2 changes: 1 addition & 1 deletion DGWTimeServer/TimeServerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,6 @@ bool CTimeServerThread::sendData(CUDPReaderWriter& socket, const CAMBEData& data
CUtils::dump(("Sending Data"), buffer, length);
return true;
#else
return socket.write(buffer, length, data.getYourAddress(), data.getYourPort());
return socket.write(buffer, length, data.getYourAddressAndPort());
#endif
}
2 changes: 1 addition & 1 deletion DGWVoiceTransmit/VoiceTransmit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,5 +228,5 @@ bool CVoiceTransmit::sendData(CAMBEData* data)
unsigned char buffer[40U];
unsigned int length = data->getG2Data(buffer, 40U);

return m_socket.write(buffer, length, data->getYourAddress(), data->getYourPort());
return m_socket.write(buffer, length, data->getYourAddressAndPort());
}

0 comments on commit 4227151

Please sign in to comment.