gameServer2/src/protocol/mod.rs
changeset 13416 cdf69667593b
parent 12136 e25a82ce2374
child 13438 da71e0d88a1c
equal deleted inserted replaced
13415:0eedc17055a0 13416:cdf69667593b
     2 use std::io::Read;
     2 use std::io::Read;
     3 use std::io::Result;
     3 use std::io::Result;
     4 use nom::IResult;
     4 use nom::IResult;
     5 
     5 
     6 pub mod messages;
     6 pub mod messages;
       
     7 pub mod test;
     7 mod parser;
     8 mod parser;
     8 
     9 
     9 pub struct ProtocolDecoder {
    10 pub struct ProtocolDecoder {
    10     buf: netbuf::Buf,
    11     buf: netbuf::Buf,
    11     consumed: usize,
    12     consumed: usize,