Wb-FreeKill Posted March 17, 2005 Share Posted March 17, 2005 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 comment Share on other sites More sharing options...
Wb-FreeKill Posted March 17, 2005 Author Share Posted March 17, 2005 ... 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? Link to comment Share on other sites More sharing options...
Blue_Drache Posted March 17, 2005 Share Posted March 17, 2005 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 Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted March 17, 2005 Author Share Posted March 17, 2005 just tried, and it works fine.. no problems at all Link to comment Share on other sites More sharing options...
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