internal void SetEncoding(CompressionConfig cfg)
 {
     if (cfg.Provider == CompressionConfig.CompressionProvider.Coconet)
     {
         this.Encoding = NetworkChannel.DataEncodingScheme.Coconet;
     }
     else if (cfg.Provider == CompressionConfig.CompressionProvider.Xpress)
     {
         this.Encoding = NetworkChannel.DataEncodingScheme.CompressedXpress;
     }
     else
     {
         this.Encoding = NetworkChannel.DataEncodingScheme.Uncompressed;
     }
     this.CompressionConfig = cfg;
 }
예제 #2
0
 internal void SetEncoding(CompressionConfig cfg)
 {
     this.m_transport.SetEncoding(cfg);
 }