private void SetSocketOptions(ClientAssociationParameters parameters) { _socket.ReceiveBufferSize = parameters.ReceiveBufferSize; _socket.SendBufferSize = parameters.SendBufferSize; _socket.ReceiveTimeout = parameters.ReadTimeout; _socket.SendTimeout = parameters.WriteTimeout; _socket.LingerState = new LingerOption(false, 0); // Nagle option _socket.NoDelay = parameters.DisableNagle; }
internal ClientAssociationParameters Copy(ClientAssociationParameters sourceParameters) { return(new ClientAssociationParameters(sourceParameters)); }
private ClientAssociationParameters(ClientAssociationParameters parameters) : base(parameters) { }