Skip to content

Issue #189, formalize SBN protocol messages - #203

Open
jphickey wants to merge 1 commit into
nasa:devfrom
jphickey:fix-189-protocol-msg-encode
Open

jphickey wants to merge 1 commit into
nasa:devfrom
jphickey:fix-189-protocol-msg-encode

Conversation

@jphickey

@jphickey jphickey commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Describe the contribution
Define a C struct for each of the SBN protocol messages along with a dedicated encode/decode routine for that structure. Move all encode operations into the corresponding codec source unit, rather than being mixed with other logic.

Fixes #189

Testing performed
Run SBN with and without EDS, confirm normal operation in both cases

Expected behavior changes
Protocol message encode/decode is now well separated from the business logic of interpreting/generating that message.

System(s) tested on
Linux

Additional context
In EDS builds the encoding is done by EDS, which now permits the entire message payload to be encoded before sending to the peer. This permits use of SBN in heterogeneous environments by ensuring all network data has the proper byte order and padding, without platform-specific differences.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey
jphickey force-pushed the fix-189-protocol-msg-encode branch 2 times, most recently from 5cfa4ac to cd3b874 Compare December 3, 2026 20:41
Define a C struct for each of the SBN protocol messages along with a
dedicated encode/decode routine for that structure.  Move all encode
operations into the corresponding codec source unit, rather than being
mixed with other logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add protocol messages to encode/decode layer

2 participants