vlad2048 Posted April 22, 2010 Posted April 22, 2010 I'm trying to get a simple AutoIt TCP client/server working. I'm pretty sure of the code, I checked the help and the forums. It's a bit complicated - It works on the same machine (client connects to server) - It doesn't work on 2 different machines (client fails to connect with WSA error 10061) - I've tried a very basic tcp echo server/client (http://www.mycplus.com/source-code/c-source-code/tcp-client-and-server/) and it works between my 2 machines. So the problem is not my machines. - The AutoIt client can connect to the previous echo server - The echo client cannot connect to the AutoIt server (error 10061) I'm CERTAIN of my tests, so really there's a problem with the AutoIt server What is wrong with ? Here's the code $g_IP = "127.0.0.1" TCPStartup() $mainSocket = TCPListen($g_IP, 1040) if ($mainSocket = -1) then MsgBox(0, "error", "failed to creaste listening socket") EndIf $clientSock = -1 do $clientSock = TCPAccept($mainSocket) until $clientSock <> -1 msgbox(0, "good", "client connected")The client
PsaltyDS Posted April 22, 2010 Posted April 22, 2010 Here's the codeWhere's the code? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now