For what it's worth, something like the following has been working with no issues whatsoever for me:
sock = UdpSocket() Base.bind(sock,ip,0) Base.setopt(sock,enable_broadcast=1) # i'm not sure why you need the ccall to uv_udp_set_broadcast above send(sock,ip,port,data) This is both on 10.9 and Linux. I don't have to access to a windows machine, so i have been not been able to verify that on windows. regards, Bassem On Sun, Feb 23, 2014 at 8:46 AM, Bob Cowdery <[email protected]> wrote: > I used the ccall simply because setopt was not exported and I didn't know > how to get round that so I just copied the relevant line. This seemed to me > it should do exactly the same thing as calling setopt(s, > enable_broadcast=1). Is that not the case? It appears to work on Windows. > > julia> s = UdpSocket() > UdpSocket(Ptr{Void} > @0x045965c0,1,Condition({}),Condition({}),Condition({})) > julia> ccall(:uv_udp_set_broadcast,Cint,(Ptr{Void},Cint), s, 1) > 0 > > I'm still left with my previous questions. > Also I just can't get any sense out of Linux. It seems not to export any > sockets stuff. > > julia> TcpSocket() > ERROR: TcpSocket not defined > > > 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 >> >
