How to set the socket type and the protocol of a socket using create_connection?

Guillaume Comte guillaume.comte10 at gmail.com
Mon Aug 20 08:36:58 EDT 2012


In fact, socket.create_connection is for TCP only so I cannot use it for a ping implementation. Does anyone have an idea about how to be able to set a source address for ICMP messages?



More information about the Python-list mailing list