Jump to content

Can one au3xtra.dll handle two ports?

Recommended Posts

Can one au3xtra.dll handle two ports at the same time? like this:

Global $socket = DLLCall(@WindowsDir & "\au3xtra.dll","int","TCPConnect", "str", $g_IP, "int", 65432)
Global $socket1 = DLLCall(@WindowsDir & "\au3xtra.dll","int","TCPConnect", "str", $g_IP, "int", 65433)
Until NOT @ERROR And $socket[0] > -1
$socket = $socket[0]
$socket1 = $socket1[0]

DLLCall(@WindowsDir & "\au3xtra.dll", "int", "TCPSend", "int", $socket, "str","Hello")
DLLCall(@WindowsDir & "\au3xtra.dll", "int", "TCPSend", "int", $socket1, "str","Hello")
Link to post
Share on other sites

There may be some logic / error handling flaws... I ainta gotta too much time... but the idea is swell...



Main error I see is Until without a Do and it's only checking for the existance of ONE of your $socket variables, not both.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...