don't know if this is any help, but just pootling around in a free moment i 
found that:

 - the lib seems to be a fairly thin wrapper around libuv
 - there's a udp example for libuv at 
http://nikhilm.github.io/uvbook/networking.html#udp
 - that shows a "set_broadcast" call
 - the base/socket.jl includes a setopt function, but it doesn't seem to be 
exported
 - after doing Base.setopt(s, enable_broadcast=1) i got send() to return

andrew

On Friday, 21 February 2014 16:45:47 UTC-3, Bob Cowdery wrote:
>
> I've no idea what I'm doing yet but I tried something very simple.
>
> addr = IPv4(255,255,255,255)
> s = UdpSocket()
> msg = zeros(Uint8, 63)
> msg[0] = 0xef
> msg[1] = 0xfe
> msg[3] = 0x02
> send(s, addr, 1024,msg)
>
> This was intended to send a broadcast message but just locked up the 
> console after the send. Can someone put me right please.
>
> Thanks
> Bob
>
> On Wednesday, February 5, 2014 7:57:34 PM UTC, Bob Cowdery wrote:
>>
>> Does the network i/o package support UDP as it only seems to have TCP 
>> functions.
>>
>> Thanks
>> Bob
>>
>

Reply via email to