Sign in to follow this  
Followers 0
mmavipc

UDP help.

2 posts in this topic

#1 ·  Posted (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 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

Share this post


Link to post
Share on other sites



Is there anyway to send,receive,connect, and listen on the broadcast address? Eg. 255.255.255.255

I 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

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  
Followers 0