SetTimeout() private method

private SetTimeout ( int timeout ) : void
timeout int
return void
コード例 #1
0
ファイル: RM.cs プロジェクト: NikolayIT/RatioMaster.NET
        internal SocketEx createSocket()
        {
            // create SocketEx object according to proxy settings
            SocketEx sock = null;
            try
            {
                sock = new SocketEx(currentProxy.ProxyType, currentProxy.ProxyServer, currentProxy.ProxyPort, currentProxy.ProxyUser, currentProxy.ProxyPassword);
                sock.SetTimeout(0x30d40);
            }
            catch (Exception sockError)
            {
                AddLogLine("createSocket error: " + sockError.Message);
            }

            return sock;
        }