Problems using Sockets

I have a problem using the sockets implementation of Julia. I’m trying to write a test program for a networking application and decided to do this in Julia instead of Python, since I am free to ue what I want and I want to learn Julia. I ran into a few problems, for most I found solutions, but I cannot find out how to bind() an outgoing TCP socket to a certain port, which is expected by the application under test:

**julia>** using Sockets

julia> u = UDPSocket()


julia> bind(u, IPv6(“fd00::104e:eff3:1076:d956”), 19991)


julia> t = TCPSocket()

TCPSocket(RawFD(0xffffffff) init, 0 bytes waiting)

julia> bind(t, IPv6(“fd00::104e:eff3:1076:d956”), 19992)

ERROR: MethodError: no method matching bind(::TCPSocket, ::IPv6, ::Int64)

Closest candidates are:

bind(::Union{TCPServer, UDPSocket}, ::IPAddr, ::Integer; ipv6only, reuseaddr, kws…) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Sockets/src/Sockets.jl:230


[1] top-level scope at none:0

I would appreciate any help and pointers to any non trivial networking application written in Julia.