Difference between revisions of "NetMsgTypes"

From BRL-CAD
(NetMsg MsgTypes)
(NetMsg MsgTypes)
Line 54: Line 54:
 
   
 
   
 
{|
 
{|
!width="60" align="left"|MsgTypeID
+
!width="70" align="left"|MsgTypeID
!width="60" align="left"|Name
+
!width="70" align="left"|Name
 
!align="left"|Description
 
!align="left"|Description
 
|-
 
|-
|width="60"|0
+
|width="70"|0
|width="60"|[[Failure]]
+
|width="70"|[[Failure]]
 
|Uses [[GenericOneByteMsg|Generic One Byte Msg]]  
 
|Uses [[GenericOneByteMsg|Generic One Byte Msg]]  
 
|-
 
|-
|width="60"|5
+
|width="70"|5
|width="60"|[[Success]]
+
|width="70"|[[Success]]
 
|
 
|
 
|-
 
|-
|width="60"|100
+
|width="70"|100
|width="60"|[[RemHostNameSET]]
+
|width="70"|[[RemHostNameSET]]
 
|
 
|
 
|-
 
|-
|width="60"|150
+
|width="70"|150
|width="60"|[[DisconnectREQ]]
+
|width="70"|[[DisconnectREQ]]
 
|
 
|
 
|-
 
|-
|width="60"|200
+
|width="70"|200
|width="60"|[[NewHostOnNet]]
+
|width="70"|[[NewHostOnNet]]
 
|
 
|
 
|-
 
|-
|width="60"|250
+
|width="70"|250
|width="60"|[[FullHostListREQ]]*
+
|width="70"|[[FullHostListREQ]]*
 
|
 
|
 
|-
 
|-
|width="60"|260
+
|width="70"|270
|width="60"|[[FullHostList]]*
+
|width="70"|[[FullHostList]]*
 
|
 
|
 
|-
 
|-
|width="60"|300
+
|width="70"|300
|width="60"|[[NewSessionREQ]]*
+
|width="70"|[[NewSessionREQ]]*
 
|
 
|
 
|-
 
|-
|width="60"|305
+
|width="70"|305
|width="60"|[[NewSession]]*
+
|width="70"|[[NewSession]]*
 
|
 
|
 
|-
 
|-
|width="60"|400
+
|width="70"|400
|width="60"|[[GeometryREQ]]
+
|width="70"|[[GeometryREQ]]
 
|
 
|
 
|-
 
|-
|width="60"|405
+
|width="70"|405
|width="60"|[[GeometryMANIFEST]]
+
|width="70"|[[GeometryMANIFEST]]
 
|
 
|
 
|-
 
|-
|width="60"|410
+
|width="70"|410
|width="60"|[[GeometryCHUNK]]
+
|width="70"|[[GeometryCHUNK]]
 
|
 
|
 
|}
 
|}

Revision as of 07:25, 21 September 2010

Design icon.png This page contains the design document for an enhancement or feature. The design should be considered a work in progress and may not represent the final design. As this is a collaborative design, contributions and participation from other developers and users is encouraged. Use the discussion page for providing comments and suggestions.


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.

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*
270 FullHostList*
300 NewSessionREQ*
305 NewSession*
400 GeometryREQ
405 GeometryMANIFEST
410 GeometryCHUNK