QuickFix.ThreadedSocketReactor.ApplySocketOptions C# (CSharp) Method

ApplySocketOptions() public static method

FIXME get socket options from SessionSettings
public static ApplySocketOptions ( TcpClient client, QuickFix.SocketSettings socketSettings ) : void
client System.Net.Sockets.TcpClient
socketSettings QuickFix.SocketSettings
return void
        public static void ApplySocketOptions(TcpClient client, SocketSettings socketSettings)
        {
            client.LingerState = new LingerOption(false, 0);
            client.NoDelay = socketSettings.SocketNodelay;
            if (socketSettings.SocketReceiveBufferSize.HasValue)
            {
                client.ReceiveBufferSize = socketSettings.SocketReceiveBufferSize.Value;
            }
            if (socketSettings.SocketSendBufferSize.HasValue)
            {
                client.SendBufferSize = socketSettings.SocketSendBufferSize.Value;
            }
        }