Skip to content

Instantly share code, notes, and snippets.

@pgdaniel
Created November 19, 2019 05:57
Show Gist options
  • Save pgdaniel/cb8251d86bd320d565680c7655b41547 to your computer and use it in GitHub Desktop.
Save pgdaniel/cb8251d86bd320d565680c7655b41547 to your computer and use it in GitHub Desktop.
Binary TCP Ruby server (inspired from ...)
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