I'm sorry; I misread what you were saying as to reimplement the new 
feature, since you mentioned libuv explicitly.

On Friday, February 21, 2014 2:51:23 PM UTC-6, andrew cooke wrote:
>
> before what?  i thought i was describing how to use the latest 0.3 
> prerelease?
>
> On Friday, 21 February 2014 17:37:12 UTC-3, Patrick O'Leary wrote:
>>
>> Before you go off and do that, note that UDP support is available in the 
>> latest 0.3 prereleases: https://github.com/JuliaLang/julia/pull/5697
>> (note that the API might change; 
>> https://github.com/JuliaLang/julia/issues/5772)
>>
>> On Friday, February 21, 2014 2:35:33 PM UTC-6, andrew cooke wrote:
>>>
>>> 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