Created
November 19, 2019 05:57
-
-
Save pgdaniel/cb8251d86bd320d565680c7655b41547 to your computer and use it in GitHub Desktop.
Binary TCP Ruby server (inspired from ...)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bindata' | |
class CustomProtocol < BinData::Record | |
endian :big | |
stringz :command_word | |
uint32 :op1 | |
uint32 :op2 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment