Wb-FreeKill 0 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") Share this post Link to post Share on other sites
Wb-FreeKill 0 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? Share this post Link to post Share on other sites
Blue_Drache 260 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 Share this post Link to post Share on other sites
Wb-FreeKill 0 Posted March 17, 2005 just tried, and it works fine.. no problems at all Share this post Link to post Share on other sites