public void SendData(GAISWriter gw) { if (connected) { GAISWriter gwSend = new GAISWriter(tcpClient.GetStream()); gwSend.Write(gw.ToArray()); gwSend.Flush(); } }
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(); } }
public void Write(GAISWriter ww) { this.Write(ww.ToArray()); }