mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-29 15:04:23 +01:00
More fixing of network byte ordering problems
This commit is contained in:
parent
bd757f9479
commit
f5f6f20113
@ -652,6 +652,7 @@ bool Network::MarshalData(NetworkUpdate *p)
|
||||
peer->private_port = htons(peer->private_port);
|
||||
peer->public_port = htons(peer->public_port);
|
||||
peer->is_master = htons(peer->is_master);
|
||||
peer->server_id = ntohl(peer->server_id);
|
||||
}
|
||||
lp->n_peers = htonl(lp->n_peers);
|
||||
lp->your_port = htons(lp->your_port);
|
||||
@ -736,6 +737,7 @@ bool Network::DeMarshalData(NetworkUpdate *p)
|
||||
peer->private_port = ntohs(peer->private_port);
|
||||
peer->public_port = ntohs(peer->public_port);
|
||||
peer->is_master = ntohs(peer->is_master);
|
||||
peer->server_id = ntohl(peer->server_id);
|
||||
}
|
||||
lp->your_port = ntohs(lp->your_port);
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user