proxygen
QPACKInterop.cpp File Reference

Go to the source code of this file.

Functions

 DEFINE_string (output,"compress.out","Output file for encoding")
 
 DEFINE_string (input,"compress.in","Input file for decoding")
 
 DEFINE_string (har,"","HAR file to compress or compare")
 
 DEFINE_string (mode,"encode","<encode|decode>")
 
 DEFINE_bool (ack, true,"Encoder assumes immediate ack of all frames")
 
 DEFINE_int32 (table_size, 4096,"Dynamic table size")
 
 DEFINE_int32 (max_blocking, 100,"Max blocking streams")
 
 DEFINE_bool (public, false,"Public HAR file")
 
int main (int argc, char **argv)
 

Function Documentation

DEFINE_bool ( ack  ,
true  ,
"Encoder assumes immediate ack of all frames"   
)
DEFINE_bool ( public  ,
false  ,
"Public HAR file"   
)
DEFINE_int32 ( table_size  ,
4096  ,
"Dynamic table size"   
)
DEFINE_int32 ( max_blocking  ,
100  ,
"Max blocking streams"   
)
DEFINE_string ( output  ,
"compress.out"  ,
"Output file for encoding"   
)
DEFINE_string ( input  ,
"compress.in"  ,
"Input file for decoding"   
)
DEFINE_string ( har  ,
""  ,
"HAR file to compress or compare"   
)
DEFINE_string ( mode  ,
"encode"  ,
"<encode|decode>"   
)
int main ( int  argc,
char **  argv 
)

Definition at line 408 of file QPACKInterop.cpp.

References folly::init(), proxygen::QPACKCodec::setDecoderHeaderTableMaxSize(), and proxygen::QPACKCodec::setMaxBlocking().

408  {
409  folly::init(&argc, &argv, true);
410  QPACKCodec decoder;
411  decoder.setMaxBlocking(FLAGS_max_blocking);
412  decoder.setDecoderHeaderTableMaxSize(FLAGS_table_size);
413  if (!FLAGS_har.empty()) {
414  return interopHAR(decoder);
415  } else {
416  return interopQIF(decoder);
417  }
418 }
void init(int *argc, char ***argv, bool removeFlags)
Definition: Init.cpp:34
char ** argv
void setDecoderHeaderTableMaxSize(uint32_t size)
Definition: QPACKCodec.h:62
void setMaxBlocking(uint32_t maxBlocking)
Definition: QPACKCodec.h:125