mitchelwb

TCP "environment variables" - how do I set those?

1 post in this topic

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?

 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • mitchelwb
      By mitchelwb
      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