mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 14:29:05 -07:00
fix serialization of mtu in verify connect packet
This commit is contained in:
parent
0fd4c9389b
commit
74d4c4a88f
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ enet_protocol_handle_connect (ENetHost * host, ENetProtocolHeader * header, ENet
|
||||||
verifyCommand.verifyConnect.outgoingPeerID = ENET_HOST_TO_NET_16 (currentPeer -> incomingPeerID);
|
verifyCommand.verifyConnect.outgoingPeerID = ENET_HOST_TO_NET_16 (currentPeer -> incomingPeerID);
|
||||||
verifyCommand.verifyConnect.incomingSessionID = incomingSessionID;
|
verifyCommand.verifyConnect.incomingSessionID = incomingSessionID;
|
||||||
verifyCommand.verifyConnect.outgoingSessionID = outgoingSessionID;
|
verifyCommand.verifyConnect.outgoingSessionID = outgoingSessionID;
|
||||||
verifyCommand.verifyConnect.mtu = ENET_HOST_TO_NET_16 (currentPeer -> mtu);
|
verifyCommand.verifyConnect.mtu = ENET_HOST_TO_NET_32 (currentPeer -> mtu);
|
||||||
verifyCommand.verifyConnect.windowSize = ENET_HOST_TO_NET_32 (windowSize);
|
verifyCommand.verifyConnect.windowSize = ENET_HOST_TO_NET_32 (windowSize);
|
||||||
verifyCommand.verifyConnect.channelCount = ENET_HOST_TO_NET_32 (channelCount);
|
verifyCommand.verifyConnect.channelCount = ENET_HOST_TO_NET_32 (channelCount);
|
||||||
verifyCommand.verifyConnect.incomingBandwidth = ENET_HOST_TO_NET_32 (host -> incomingBandwidth);
|
verifyCommand.verifyConnect.incomingBandwidth = ENET_HOST_TO_NET_32 (host -> incomingBandwidth);
|
||||||
|
|
Loading…
Reference in a new issue