Skip to content

Instantly share code, notes, and snippets.

View maxwells's full-sized avatar

Max Lahey maxwells

View GitHub Profile
@maxwells
maxwells / protocol.rb
Created August 9, 2017 17:17 — forked from omnisis/protocol.rb
Ruby UDP Server/Client Pair with Custom Binary Protocol
require 'bindata'
class CustomProtocol < BinData::Record
endian :big
stringz :command_word
uint8 :op1
uint8 :op2
end