Jump to content
Sign in to follow this  
Wb-FreeKill

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")

Share this post


Link to post
Share on other sites

... yes ... multiple socket connections on 1 port, and multiple socket connections on multiple ports ... Anything that gives you a unique "socket"

Lar.

<{POST_SNAPBACK}>

so my exampke would work?

Share this post


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...

Lar.

<{POST_SNAPBACK}>

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

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...