EventMachine connection protocol for reading and writing BERPs