From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Library:ENet" |
|---|
| claim | "The CONNECT command (after the 4-byte command header) carries outgoingPeerID u16, incomingSessionID u8, outgoingSessionID u8, then big-endian u32 mtu, windowSize, channelCount, incomingBandwidth, outgoingBandwidth, packetThrottleInterval, packetThrottleAcceleration, packetThrottleDeceleration, connectID, data: 48 bytes in total; VERIFY_CONNECT is the same without the final data field (44 bytes)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:ENet" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ENetProtocolConnect" |
|---|
| size | 48 |
|---|
| fields | | name | "header" |
|---|
| type | "ENetProtocolCommandHeader" |
|---|
| offset | 0 |
|---|
|
| name | "outgoingPeerID" |
|---|
| type | "uint16" |
|---|
| offset | 4 |
|---|
|
| name | "incomingSessionID" |
|---|
| type | "uint8" |
|---|
| offset | 6 |
|---|
|
| name | "outgoingSessionID" |
|---|
| type | "uint8" |
|---|
| offset | 7 |
|---|
|
| name | "mtu" |
|---|
| type | "uint32" |
|---|
| offset | 8 |
|---|
|
| name | "windowSize" |
|---|
| type | "uint32" |
|---|
| offset | 12 |
|---|
|
| name | "channelCount" |
|---|
| type | "uint32" |
|---|
| offset | 16 |
|---|
|
| name | "incomingBandwidth" |
|---|
| type | "uint32" |
|---|
| offset | 20 |
|---|
|
| name | "outgoingBandwidth" |
|---|
| type | "uint32" |
|---|
| offset | 24 |
|---|
|
| name | "packetThrottleInterval" |
|---|
| type | "uint32" |
|---|
| offset | 28 |
|---|
|
| name | "packetThrottleAcceleration" |
|---|
| type | "uint32" |
|---|
| offset | 32 |
|---|
|
| name | "packetThrottleDeceleration" |
|---|
| type | "uint32" |
|---|
| offset | 36 |
|---|
|
| name | "connectID" |
|---|
| type | "uint32" |
|---|
| offset | 40 |
|---|
|
| name | "data" |
|---|
| type | "uint32" |
|---|
| offset | 44 |
|---|
|
|
|---|
| endianness | "big" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "ENetProtocolConnect and ENetProtocolVerifyConnect (packed, #pragma pack 1)" |
|---|
| repo | "https://github.com/lsalzman/enet" |
|---|
| commit | "5a9c537fd464b3c6d3c55e1d3bd47588faf71b42" |
|---|
| path | "include/enet/protocol.h" |
|---|
|
| type | "source" |
|---|
| detail | "ENET_NET_TO_HOST_32/16 on connect.channelCount, outgoingPeerID, incomingBandwidth, outgoingBandwidth" |
|---|
| repo | "https://github.com/lsalzman/enet" |
|---|
| commit | "5a9c537fd464b3c6d3c55e1d3bd47588faf71b42" |
|---|
| path | "protocol.c" |
|---|
| lines | "304-346" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CONNECT command" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T12:41:10.897Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:03:43.199Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read include/enet/protocol.h at 5a9c537f: ENetProtocolConnect is header(4), u16, u8, u8, then 10 enet_uint32 (mtu..connectID, data) = 48 bytes, packed; ENetProtocolVerifyConnect is identical without data = 44. Wire byte order not checked in this file." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:39:40.128Z" |
|---|
| summary | "Set byte order big: protocol.c converts every field with ENET_NET_TO_HOST_16/32 (network order)." |
|---|
| changed | |
|---|
|
|
|---|