Difference between revisions of "NetMsgTypes"
From BRL-CAD
(→NetMsg MsgTypes) |
(→NetMsg MsgTypes) |
||
Line 62: | Line 62: | ||
{| | {| | ||
− | !width="55" |MsgTypeID | + | !width="55"|MsgTypeID |
!Description | !Description | ||
|- | |- | ||
− | |0 | + | |width="55"|0 |
|[[Failure]] | |[[Failure]] | ||
|- | |- | ||
− | |5 | + | |width="55"|5 |
|[[Success]] | |[[Success]] | ||
|- | |- | ||
− | | | + | |width="55"|100 |
|[[RemHostNameSET]] | |[[RemHostNameSET]] | ||
|- | |- | ||
− | | | + | |width="55"|150 |
|[[DisconnectREQ]] | |[[DisconnectREQ]] | ||
|- | |- | ||
− | | | + | |width="55"|200 |
|[[NewHostOnNet]] | |[[NewHostOnNet]] | ||
|- | |- | ||
− | | | + | |width="55"|250 |
|[[FullHostListREQ]]* | |[[FullHostListREQ]]* | ||
|- | |- | ||
− | | | + | |width="55"|255 |
|[[FullHostList]]* | |[[FullHostList]]* | ||
|- | |- | ||
− | | | + | |width="55"|300 |
|[[NewSessionREQ]]* | |[[NewSessionREQ]]* | ||
|- | |- | ||
− | | | + | |width="55"|305 |
|[[NewSession]]* | |[[NewSession]]* | ||
|- | |- | ||
− | | | + | |width="55"|400 |
|[[GeometryREQ]] | |[[GeometryREQ]] | ||
|- | |- | ||
− | | | + | |width="55"|405 |
|[[GeometryMANIFEST]] | |[[GeometryMANIFEST]] | ||
|- | |- | ||
− | | | + | |width="55"|410 |
|[[GeometryCHUNK]] | |[[GeometryCHUNK]] | ||
|} | |} |
Revision as of 07:14, 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.
GenericOneByteMsg | GenericTwoBytesMsg | GenericFourBytesMsg |
GenericMultiByteMsg | GenericOneStringMsg |
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 | Description |
---|---|
0 | Failure |
5 | Success |
100 | RemHostNameSET |
150 | DisconnectREQ |
200 | NewHostOnNet |
250 | FullHostListREQ* |
255 | FullHostList* |
300 | NewSessionREQ* |
305 | NewSession* |
400 | GeometryREQ |
405 | GeometryMANIFEST |
410 | GeometryCHUNK |