Re: Determine sockets in use by python

2010-10-01 Thread Antoine Pitrou
On Thu, 30 Sep 2010 12:32:45 -0700 Jim Mellander wrote: > Thanks, I realized that even if I found out relevant info on the > socket, I would probably need to use ctypes to provide a low level > interface to select, as the socket wouldn't be a python socket object, > unless there is some way to pr

Re: Determine sockets in use by python

2010-09-30 Thread exarkun
On 07:32 pm, jmellan...@lbl.gov wrote: Thanks, I realized that even if I found out relevant info on the socket, I would probably need to use ctypes to provide a low level interface to select, as the socket wouldn't be a python socket object, unless there is some way to promote a c socket to a py

Re: Determine sockets in use by python

2010-09-30 Thread Jim Mellander
Thanks, I realized that even if I found out relevant info on the socket, I would probably need to use ctypes to provide a low level interface to select, as the socket wouldn't be a python socket object, unless there is some way to promote a c socket to a python socket object. Appreciate the info,

Re: Determine sockets in use by python

2010-09-30 Thread Jean-Paul Calderone
On Sep 29, 4:08 pm, Jim Mellander wrote: > > On Wed, Sep 29, 2010 at 11:05 AM, Gary Herron wrote: > > On 09/29/2010 09:50 AM, Jim Mellander wrote: > > >> Hi: > > >> I'm a newbie to python, although not to programming.  Briefly, I am > >> using a binding to an external library used for communicati

Re: Determine sockets in use by python

2010-09-29 Thread Jim Mellander
Hi Gary: Certainly not windows I'm developing on OS/X but for production probably Linux and FreeBSD (I'm hoping for something a bit more portable than running 'lsof' and parsing the output, but appreciate any/all advice) On Wed, Sep 29, 2010 at 11:05 AM, Gary Herron wrote: > On 09/29/2010

Re: Determine sockets in use by python

2010-09-29 Thread Gary Herron
On 09/29/2010 09:50 AM, Jim Mellander wrote: Hi: I'm a newbie to python, although not to programming. Briefly, I am using a binding to an external library used for communication in a client-server context, with the server in python. Typically, I would set this up with event callbacks, and then

Determine sockets in use by python

2010-09-29 Thread Jim Mellander
Hi: I'm a newbie to python, although not to programming. Briefly, I am using a binding to an external library used for communication in a client-server context, with the server in python. Typically, I would set this up with event callbacks, and then enter a select loop, which, most the time idle