Difference between revisions of "NetMsgTypes"
From BRL-CAD
(→NetMsg Generic Templates) |
|||
Line 43: | Line 43: | ||
The GSNet Protocol provides several Template classes to be used or extended from. | The GSNet Protocol provides several Template classes to be used or extended from. | ||
− | + | * [[GenericOneByteMsg|Generic One Byte Msg]] | |
− | + | * [[GenericTwoBytesMsg|Generic Two Byte Msg]] | |
− | + | * [[GenericFourBytesMsg|Generic Four Byte Msg]] | |
− | + | * [[GenericMultiByteMsg|Generic Multi Byte Msg]] | |
− | + | * [[GenericOneStringMsg|Generic One String Msg]] | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==NetMsg MsgTypes== | ==NetMsg MsgTypes== | ||
Some [[IBME_GeometryService#NetMsg_Class|NetMsgs]] will need to have custom bodies. Here is a list of [[IBME_GeometryService#NetMsg_Class|NetMsgs]], their related MsgTypes, and links to details on that specific [[IBME_GeometryService#NetMsg_Class|NetMsg]]: | Some [[IBME_GeometryService#NetMsg_Class|NetMsgs]] will need to have custom bodies. Here is a list of [[IBME_GeometryService#NetMsg_Class|NetMsgs]], their related MsgTypes, and links to details on that specific [[IBME_GeometryService#NetMsg_Class|NetMsg]]: |
Revision as of 07:23, 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 |
---|---|---|
0 | Failure | Uses Generic One Byte msg |
5 | Success | |
100 | RemHostNameSET | |
150 | DisconnectREQ | |
200 | NewHostOnNet | |
250 | FullHostListREQ* | |
260 | FullHostList* | |
300 | NewSessionREQ* | |
305 | NewSession* | |
400 | GeometryREQ | |
405 | GeometryMANIFEST | |
410 | GeometryCHUNK |