Jump to content

Search the Community

Showing results for tags 'tcp socket'.

  • 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


Member Title


Location


WWW


Interests

Found 2 results

  1. I'm having issues getting a TCPSend/TCPRecv to work. I'm creating the socket ok, but when I send my XML request over the first time, I get a response that it was invalid. Subsequent requests after that, I get no response from the server at all. I spoke to the sysAdmin for the server and he said that it locked out my port because it received 1000's of requests. But there are no loops in my code and the total time to process the script was 0.94 seconds. Any ideas? createTCP() Func createTCP() TCPStartup() ; Start the TCP service. ; Register OnAutoItExit to be called when the script is closed. OnAutoItExitRegister("OnAutoItExit") Opt("TCPTimeout", 10000) Local $sIPAddress = TCPNameToIP("the.server.com") $iPort = 60008 ; this port is assigned to this app Local $iSocket = TCPConnect($sIPAddress, $iPort) if @error Then Exit EndIf ;get xml request contents $XMLData = GetXMLReq("mydata", "mydata", "mydata", "mydata") ;send xml request TCPSend($iSocket,$XMLData) $Response = TCPRecv($iSocket, 1024) EndFunc Func OnAutoItExit() TCPShutdown() ; Close the TCP service. logit("TCP Shutdown") EndFunc ;==>OnAutoItExit
  2. This is a followup question to my previous thread about TCP requests, but since it's a different question, I wanted to start a new thread. I spoke to the sysAdmin today, and they also looked over my code. What they pointed out was that I was missing a few values that I'm going to call "environment variables" but I'm not really sure exactly what they are. I've not been able to find any kind of option or indication in the AutoIt documentation that fits the bill, so I'll ask here. They are telling me that the request needs to include a ClientId = 4 and an AppType = 2. These are values that they sent to me when they sent me the IP and the port, so I was aware of them, but maybe got off course on a wild goose chase with the 1000's of requests hitting their server. I've asked the server admins if they can send me a block of example code that shows these variables being used in any language (I assume they'll send me java) so that I might get some clues on how they fit in, but in the mean time, I'm still lost. I've searched a lot but so far, I've been unable to find any kind of example in any language that utilizes these types of "environment variables" in making a TCP or UDP request. What am I missing?
×
×
  • Create New...