at "if
> useListener>0 {}" scope? So server.ListenAndServe() is always invoked?
>
> If so, then - thanks a lot for the help! :)
>
> Cheers,
>
> J.
>
> On Friday, September 6, 2019 at 8:09:37 AM UTC-5, Jacques Supcik wrote:
>>
>> Hello,
>>
>&g
Hello,
I tried your program and when you call listener, err := net.Listen("tcp4",
addrString) it does indeed only listen to "tcp4". Later, when you call
server.ListenAndServe() (because listener is nil), the system seems to
"re-listen" from the same port and then it listen to "tcp" and not
I'm glad I could help.
Cheers,
-- Jacques
--
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+unsubscr...@googlegroups.com.
To view this discussion on
As suggested by Kurtis Rader, I would use "reflection" for this.
Here is a simple example (not fully tested, probably not safe, not
production ready... so just for demonstration purpose) :
https://play.golang.org/p/sAyBajxsTAN
-- Jacques
--
You received this message because you are
Hello Chris,
I made a small project with the same structure as yours to reproduce the
problem : https://github.com/supcik/rtppwgm
But in my project, everything works as expected :
» go test -count=1 ./...
ok demo/pkg1 0.006s
ok demo/pkg2 0.006s
» go test -count=1