PgmTransport.PgmSocket.SetSocketOption C# (CSharp) Method

SetSocketOption() public static method

public static SetSocketOption ( Socket socket, string name, int option, uint val ) : bool
socket System.Net.Sockets.Socket
name string
option int
val uint
return bool
        public static bool SetSocketOption(Socket socket, string name, int option, uint val)
        {
            try
            {
                byte[] bits = BitConverter.GetBytes(val);
                SetPgmOption(socket, option, bits);
               // log.Info("Set: " + name + " Option : " + option + " value: " + val);
                return true;
            }
            catch (Exception failed)
            {
                log.Debug(name + " Option : " + option + " value: " + val, failed);
                return false;
            }
        }