Exemplo n.º 1
0
 public static void WriteBytes(TcpClientm d, byte[] b)
 {
     if (b != null)
     {
         d.Write((short)b.Length);
         d.Write(b);
     }
     else
         d.Write((short)0);
 }
Exemplo n.º 2
0
 public static void WriteString(TcpClientm d, string s)
 {
     d.Write((short)s.Length);
     if (s.Length > 0)
         d.Write(s);
 }