You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
387 B

4 years ago
4 years ago
4 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Net.Sockets;
  4. using System.Text;
  5. namespace Apewer
  6. {
  7. internal class TcpBuffer
  8. {
  9. // TCP 传输缓冲区大小。
  10. public const int Size = 8192;
  11. public Socket Socket;
  12. public byte[] Buffer;
  13. public TcpBuffer()
  14. {
  15. Buffer = new byte[Size];
  16. }
  17. }
  18. }