Python Forum

Full Version: Change code from using UDP socket to TCP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

I want to change this code (https://github.com/c-paras/DistanceVectorProtocol) from UDP to TCP, I start with
socket.SOCK_STREAM
and I no know how to add listen() and accept() and what are the other lines that should be modified ?

My aim is to conserve the interaction with configuration files and using at the same time TCP (by changing also the principle of this protocol)

Thanks a lot