mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 23:46:29 +02:00
UDPSocket methods now want sockaddr instead of sockaddr_in
This commit is contained in:
parent
1e00962fb7
commit
41691a8aae
1 changed files with 2 additions and 2 deletions
|
@ -137,7 +137,7 @@ int main (int argc, const char *argv[]) {
|
|||
std::cout << "[DEBUG] Listening for Datagrams" << std::endl;
|
||||
|
||||
while (true) {
|
||||
if (spaceSocket.receive(&destAddress, &packetData, &receivedBytes)) {
|
||||
if (spaceSocket.receive((sockaddr *)&destAddress, &packetData, &receivedBytes)) {
|
||||
unsigned long lengthInBits;
|
||||
lengthInBits = packetData[0] * 3;
|
||||
|
||||
|
@ -151,7 +151,7 @@ int main (int argc, const char *argv[]) {
|
|||
? lastKnownHostname
|
||||
: thisNode->hostname;
|
||||
|
||||
spaceSocket.send(&destAddress, &hostnameToSend, sizeof(hostnameToSend));
|
||||
spaceSocket.send((sockaddr *)&destAddress, &hostnameToSend, sizeof(hostnameToSend));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue