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

Chris Angelico rosuav at gmail.com
Mon Aug 20 11:38:03 EDT 2012


On Mon, Aug 20, 2012 at 11:38 PM, Hans Mulder <hansmu at xs4all.nl> wrote:
> Why are you trying to reimplement ping?
>
> All OS'es I am aware of come with a working ping implementation.

For some definition of "working", at least. I've never managed to get
MS Windows to ping broadcast, for instance.

A Google search for 'python ping' comes up with a few good answers,
though. You may want to have a look at some of them; if nothing else,
you'll get confirmation that what you're doing corresponds to what
someone else has done (which isn't proof you're doing the right thing,
but it does suggest it).

ChrisA



More information about the Python-list mailing list