示例#1
0
 public void SendData(GAISWriter gw)
 {
     if (connected)
     {
         GAISWriter gwSend = new GAISWriter(tcpClient.GetStream());
         gwSend.Write(gw.ToArray());
         gwSend.Flush();
     }
 }
示例#2
0
 public void SendData(Byte[] arr)
 {
     if (connected)
     {
         GAISWriter gw = new GAISWriter();
         gw.Write((Int32)OPCODE.VIDEO_UPDATE);
         gw.Write(Nick);
         gw.Write(arr.Length);
         gw.Write(arr);
         GAISWriter gwSend = new GAISWriter(tcpClient.GetStream());
         gwSend.Write(gw.ToArray());
         gwSend.Flush();
     }
 }
示例#3
0
 public void Write(GAISWriter ww)
 {
     this.Write(ww.ToArray());
 }