FPS 0.0.3

Flow processing system (under construction).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const DEFAULT_PACKET_BUFFER_SIZE: usize = 2048;
pub const PACKET_BUFFER_SIZE: usize = DEFAULT_PACKET_BUFFER_SIZE;
pub const MAX_FIELD_NAME: usize = 128;

// pub const PACKET_BUFFER_SIZE : usize = match option_env!("PACKET_BUFFER_SIZE") {
//    None => DEFAULT_PACKET_BUFFER_SIZE,
//    Some(num_str) => {
//        match num_str.parse::<usize>() {
//            Ok(num) => {
//                match num.is_power_of_two() {
//                    true => num,
//                    _ => DEFAULT_PACKET_BUFFER_SIZE,
//                }
//                },
//            _ => { DEFAULT_PACKET_BUFFER_SIZE },
//        }
//    }
// };