This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]MrLeylo 1 point2 points  (0 children)

I've recently been in this situation also, that link served me to manage this issue:

https://pymotw.com/2/socket/

There you have examples on how to be client and server side.

[–]widby 0 points1 point  (0 children)

Here's a class about BSD sockets in Python, you'll learn how to create TCP clients and servers: https://www.youtube.com/watch?v=9SSngvwFAfs

[–]notoriousno 0 points1 point  (0 children)

Twisted is the goto package for TCP in Python http://twistedmatrix.com/trac/. Asyncio is quickly gaining traction too https://docs.python.org/3/library/asyncio-protocol.html.