Jump to content

Search the Community

Showing results for tags '_FTP_Connect()'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 1 result

  1. We have several servers and I'm writing a server status monitor. I am trying to quickly determine if I can FTP to each of our local servers. When I successfully do an _FTP_Open(), then call _FTP_Connect(), the _FTP_Connect takes around 45 seconds to time out. I want to make the 'FTP-ability' test to take no more than 1 or 2 seconds. Is there a way to change the _FTP_Connect() timeout? Perhaps there is another call I could use? Here is my sample code (with my server credentials removed). #include <FTPEx.au3> #include <array.au3> _Main() Exit (0) Func _Main() Local $server, $uname, $pwd, $hSession, $iID, $bRet $server = "xxxxx" $uname = "xxxxx" $pwd = "xxxx" $hSession = _FTP_Open('MyFTP') If $hSession <> 0 Then $iID = _FTP_Connect($hSession, $server, $uname, $pwd, 1, 21) ConsoleWrite("Can connect OK" & @CRLF) If ($iID <> 0) Then Else ConsoleWrite("Connect FAILED" & @CRLF) EndIf _FTP_Close($hSession) Else ConsoleWrite("+++: Openfailed" & @CRLF) EndIf EndFunc ;==>_Main
×
×
  • Create New...