Пример #1
0
 public Client(Socket clientSocket)
 {
     UserProperties    = new UserProperties();
     this.clientSocket = clientSocket;
     log?.Invoke("Client started from open socket");
     StartReceiving();
 }
Пример #2
0
 public Client()
 {
     UserProperties = new UserProperties();
     clientSocket   = new Socket(SocketType.Stream, ProtocolType.Tcp);
     clientSocket.SendBufferSize    = 32768;
     clientSocket.ReceiveBufferSize = 32768;
     log?.Invoke("Client created.");
 }