Send Msg To Specific Tcp Client from Tcp Server Python
dieter
dieter at handshake.de
Thu Aug 11 02:06:23 EDT 2016
Anil reddy reddy M <anilreddy449 at gmail.com> writes:
> I was written a simple tcp server in python, which is nicely communicating with multiple tcp clients. My Tcp Server can accept multiple clients at time, each client as a new thread. I want send message to specific tcp client after some time.
> I can client Address from connction, addr = socket.accept(), but i am not able send msg to client with client IP.POrT. I would be thankfull for any help i get
TCP channels are bidirectional: you can send messages in both
directions. Thus, writing to the server's socket (for a specific client)
sends the written data to the client.
More information about the Python-list
mailing list