You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
If net.DialTCP() [1] needs arguments of type *TCPAddr, then how to get
a type TCPAddr for the local address without to know an unused port in
your local host?
// needs a port that you don't know if it's unused
net.ResolveTCPAddr("127.0.0.1")
* Note that net.Dial() [2] can to get the local port automatically:
Dial("tcp", "", "google.com:80")