Difference between revisions of "NetMsgTypes"
From BRL-CAD
(→NetMsg MsgTypes) |
|||
Line 60: | Line 60: | ||
|width="70"|0x0050 | |width="70"|0x0050 | ||
|width="70"|[[Failure]] | |width="70"|[[Failure]] | ||
− | |Uses [[GenericOneByteMsg|Generic One Byte Msg]] | + | |Uses [[GenericOneByteMsg|Generic One Byte Msg]]. |
|- | |- | ||
|width="70"|0x0051 | |width="70"|0x0051 | ||
|width="70"|[[Success]] | |width="70"|[[Success]] | ||
− | |Uses [[GenericOneByteMsg|Generic One Byte Msg]] | + | |Uses [[GenericOneByteMsg|Generic One Byte Msg]]. |
|- | |- | ||
|width="70"|0x0100 | |width="70"|0x0100 | ||
|width="70"|[[RemHostNameSET]] | |width="70"|[[RemHostNameSET]] | ||
− | | | + | |Uses [[GenericOneStringMsg|Generic One String Msg]]. |
|- | |- | ||
|width="70"|0x0150 | |width="70"|0x0150 | ||
|width="70"|[[DisconnectREQ]] | |width="70"|[[DisconnectREQ]] | ||
− | | | + | | "MsgType Only" NetMsg and has no body. |
|- | |- | ||
|width="70"|0x0200 | |width="70"|0x0200 | ||
|width="70"|[[NewHostOnNet]] | |width="70"|[[NewHostOnNet]] | ||
− | | | + | |Uses [[GenericOneStringMsg|Generic One String Msg]]. |
|- | |- | ||
|width="70"|0x0250 | |width="70"|0x0250 | ||
|width="70"|[[FullHostListREQ]]* | |width="70"|[[FullHostListREQ]]* | ||
− | | | + | | '''''Not Implemented Yet''' |
|- | |- | ||
|width="70"|0x0255 | |width="70"|0x0255 | ||
|width="70"|[[FullHostList]]* | |width="70"|[[FullHostList]]* | ||
− | | | + | | '''''Not Implemented Yet''' |
|- | |- | ||
|width="70"|0x0300 | |width="70"|0x0300 | ||
Line 100: | Line 100: | ||
|width="70"|0x0400 | |width="70"|0x0400 | ||
|width="70"|[[GeometryREQ]] | |width="70"|[[GeometryREQ]] | ||
− | | | + | |Uses [[GenericOneStringMsg|Generic One String Msg]] in addition to custom fields. |
|- | |- | ||
|width="70"|0x0405 | |width="70"|0x0405 | ||
Line 108: | Line 108: | ||
|width="70"|0x0410 | |width="70"|0x0410 | ||
|width="70"|[[GeometryCHUNK]] | |width="70"|[[GeometryCHUNK]] | ||
− | | | + | |Uses [[GenericMultiByteMsg|Generic Multi Byte Msg]]. |
|} | |} |
Revision as of 07:40, 21 September 2010
Common Header Byte Format
All NetMsgs will contain a uniform header:
Element | Length | Notes |
Magic1 | int16 (2 Bytes) | Always 0x41FE |
Magic2 | int16 (2 Bytes) | Always 0x5309 |
MessageLength | int32 (4 bytes) | |
MsgType | int16 (2 bytes) | |
MessageUUID | String (Variable bytes) | |
HasRegardingUUID | Boolean (1 byte) | |
RegardingMessageUUID | String (Variable bytes) |
NetMsg Generic Templates
The GSNet Protocol provides several Template classes to be used or extended from.
- Generic One Byte Msg
- Generic Two Byte Msg
- Generic Four Byte Msg
- Generic Multi Byte Msg
- Generic One String Msg
NetMsg MsgTypes
Some NetMsgs will need to have custom bodies. Here is a list of NetMsgs, their related MsgTypes, and links to details on that specific NetMsg:
MsgTypeID | Name | Description |
---|---|---|
0x0050 | Failure | Uses Generic One Byte Msg. |
0x0051 | Success | Uses Generic One Byte Msg. |
0x0100 | RemHostNameSET | Uses Generic One String Msg. |
0x0150 | DisconnectREQ | "MsgType Only" NetMsg and has no body. |
0x0200 | NewHostOnNet | Uses Generic One String Msg. |
0x0250 | FullHostListREQ* | Not Implemented Yet |
0x0255 | FullHostList* | Not Implemented Yet |
0x0300 | NewSessionREQ* | |
0x0305 | NewSession* | |
0x0310 | LogoutSession | |
0x0400 | GeometryREQ | Uses Generic One String Msg in addition to custom fields. |
0x0405 | GeometryMANIFEST | |
0x0410 | GeometryCHUNK | Uses Generic Multi Byte Msg. |