mmavipc Posted November 26, 2008 Share Posted November 26, 2008 (edited) This code seems to not work #include <array.au3> $ip = @IPAddress1 UDPStartup() ;~ $udpr = UDPBind($ip,4312) $udp = UDPopen("255.255.255.255", 4312) $e = @error _ArrayDisplay($udp) MsgBox(0,"1",$udp) If $e = True or $udp = -1 Then MsgBox(0, "2", $e) EndIf While 1 UDPSend($udp, "au3client|" & $ip) $e = @error If $e = True Then MsgBox(0, "3", $e) EndIf WEnd Func OnAutoItExit() UDPCloseSocket($udp) ;~ UDPCloseSocket($udpr) UDPShutdown() EndFunc ;==>OnAutoItExit Any help is appriciated! Edited November 26, 2008 by mmavipc [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N Link to comment Share on other sites More sharing options...
mmavipc Posted November 26, 2008 Author Share Posted November 26, 2008 Is there anyway to send,receive,connect, and listen on the broadcast address? Eg. 255.255.255.255I have multiple computers in my LAN and i plan to make like a security au3 script. So I can control all computers from one place. On startup the computers will broadcast(255.255.255.255) asking for the servers IP. then the server will not broadcast but unicast it's ip to the client. Is there anyway do to that?Hmm I just looked and It looks like this is not possible with TCP. (sigh) Looks like It's time I learned UDP [size="10"]Pure Au3 crypt funcs(I'm currently also working on making a dll from this)[/size][Y] Be more active in the community[Y] Get 200 posts[N] Get 300 posts[N] Make a Topic in the example scripts forum with at least 50 replies.People who currently hate me:ValikSmOke_N 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