BMK (or Baja Mali Knindza) protocol implementation over TCP