in reply to Re: Tk & Socket: Tk::Error: fileno not same for read X and write Y
in thread Tk & Socket: Tk::Error: fileno not same for read X and write Y

I cannot see the reason why Tk is involved here, at least base what you presented.

I assume that the posted code is just a reduced test-case that shows the problem, and that the OP wanted to use a GUI to present the information obtained from the clients in some way or another. Tk would seem a reasonable choice under those circumstances.

Of course, I agree that Tk should probably be left out of handling the sockets (see my other post), if that's what you meant.

bbfu
Black flowers blossom
Fearless on my breath

  • Comment on Re2: Tk & Socket: Tk::Error: fileno not same for read X and write Y