Editing GeometryServiceNetworkProtocol
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 12: | Line 12: | ||
---- | ---- | ||
+ | ==Visual GSNet Msg Breakdown== | ||
+ | [[Image:GSNetMsgBreakdown.png|520x373px]] | ||
+ | ---- | ||
− | =GSNet Msg | + | ==GSNet Msg== |
− | ==Header== | + | ===Header=== |
− | The header of the GSNet Msg contains the information necessary for quickly determining authenticity, type and length. Geometry Service's network library, libNetwork, | + | The header of the GSNet Msg contains the information necessary for quickly determining authenticity, type and length. Geometry Service's network library, libNetwork, is built upon BRL-CAD's networking library: libPKG. This causes the header byte layout to look like this: |
<br /><br /> | <br /><br /> | ||
− | {| | + | {|border="1" |
− | | | + | |width="180"|'''Element''' |
− | | | + | |width="180"|'''Length''' |
− | | | + | |width="180"|'''Value''' |
+ | |- | ||
+ | |Magic1 | ||
+ | |int16 (2 Bytes) | ||
+ | |Always 0x41FE | ||
+ | |- | ||
+ | |Magic2 | ||
+ | |int16 (2 Bytes) | ||
+ | |Always 0x5309 | ||
|- | |- | ||
− | | | + | |MessageLength |
− | | | + | |int32 (4 bytes) |
− | + | | | |
|- | |- | ||
− | | | + | |MsgType |
− | | | + | |int16 (2 bytes) |
− | | | + | | |
|- | |- | ||
− | + | |MessageUUID | |
− | + | |[[GSNet_String|String (Variable bytes)]] | |
− | + | | | |
|- | |- | ||
− | + | |HasRegardingUUID | |
− | + | |Boolean (1 byte) | |
− | + | | | |
|- | |- | ||
− | + | |RegardingMessageUUID | |
− | + | |[[GSNet_String|String (Variable bytes)]] | |
− | + | | | |
|} | |} | ||
− | + | ====libPKG Part==== | |
− | + | Due to some C and C++ incompatabilities, the libPKG "Type" parameter is used as "Magic2" in the GSNet Protocol. NetMsg routing is performed on the "GS Msg Type" parameter | |
− | + | ||
− | + | ====GSNet Part==== | |
+ | |||
+ | ---- | ||
+ | ===Data=== | ||
---- | ---- | ||
− | |||
− | |||
− | |||
− | + | List of [[NetMsgTypes]]. | |
+ | |||
+ | List of [[Common NetMsg Exchanges]] |