public Client(Socket clientSocket) { UserProperties = new UserProperties(); this.clientSocket = clientSocket; log?.Invoke("Client started from open socket"); StartReceiving(); }
public Client() { UserProperties = new UserProperties(); clientSocket = new Socket(SocketType.Stream, ProtocolType.Tcp); clientSocket.SendBufferSize = 32768; clientSocket.ReceiveBufferSize = 32768; log?.Invoke("Client created."); }