*net.TCPConn has a Close method.
On Thu, 2012-10-11 at 04:22 -0700, Rory McGuire wrote:
> Hi,
>
> I'm using go.crypto.ssh.DialTCP(....) (net.Conn, error) to get a tunnel to
> another server. :D problem is I need the local port number.
>
> Why can I not get the Port from a TCPAddr that is currently a Addr if the
> error I'm getting is:
> *impossible type assertion: conn (type net.Conn) cannot have dynamic type
> net.TCPConn (missing Close method)*
> *
> *
> which is from this:
> * conn.(net.TCPConn).LocalAddr().(net.TCPAddr).Port*