FAQ
In most (maybe all?) tcp implementations the server does indeed assign a new port to the connection when it Accepts it. This way other clients may continue to connect using the same port, the functionality you want. Try printing out the local address information from the connection returned from Accept.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 7 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedFeb 15, '15 at 6:29a
activeFeb 16, '15 at 4:27a
posts7
users4
websitegolang.org

People

Translate

site design / logo © 2022 Grokbase