Exemple #1
0
 public void Transmit(byte[] buf, int offset, int length)
 {
     for (int i = 0; i < length; i++)
     {
         byte t = buf[offset + i];
         if (t == 0xFF || t == 0x0D)              //0xFF‚Ü‚½‚ÍCRLFˆÈŠO‚ÌCR‚ðŒ©‚Â‚¯‚½‚ç
         {
             WriteEscaping(buf, offset, length);
             return;
         }
     }
     _socket.Transmit(buf, offset, length);             //‘å’ï‚̏ꍇ‚Í‚±‚¤‚¢‚¤ƒf[ƒ^‚Í“ü‚Á‚Ä‚¢‚È‚¢‚̂ŁA‚‘¬‰»‚Ì‚½‚ß‚»‚Ì‚Ü‚Ü‘—‚èo‚·
 }
Exemple #2
0
 public void Transmit(byte[] buf, int offset, int length)
 {
     for (int i = 0; i < length; i++)
     {
         byte t = buf[offset + i];
         if (t == 0xFF || t == 0x0D)   //0xFFまたはCRLF以外のCRを見つけたら
         {
             WriteEscaping(buf, offset, length);
             return;
         }
     }
     _socket.Transmit(buf, offset, length); //大抵の場合はこういうデータは入っていないので、高速化のためそのまま送り出す
 }
Exemple #3
0
 public void WriteTo(IPoderosaSocket target)
 {
     byte[] data = _strm.ToArray();
     target.Transmit(data, 0, data.Length);
     //target.Flush();
 }
Exemple #4
0
 public void WriteTo(IPoderosaSocket target)
 {
     byte[] data = _strm.ToArray();
     target.Transmit(data, 0, data.Length);
     //target.Flush();
 }