A Thrift packet processor library in Erlang