Пример #1
0
 public static byte[] Receive(Client client)
 {
     byte[] buffer = new byte[2048];
     int received = client.Receive(buffer, 0, buffer.Length);
     if (received != -1)
     {
         return buffer;
     }
     else
         return null;
 }