Hi guys,
I am just catching up on sage-devel reading.  To figure out the next
available port, I used the follow snippet in DSage:

            try:
                s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
                s.connect(('', NEW_CLIENT_PORT))
                port_used = True
            except socket.error, msg:
                port_used = False

where NEW_CLIENT_PORT is the next port you want to try.  This way you
can quickly find an open port you can listen on.

-Yi

On 7/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >  (2) There are some issues remaining with the new SAGE notebook:
> >        (a) Auto-opening of next available port needs to be implemented
> >        (b) I suspect running two SAGE notebooks from the same directory
> >              might not correctly give a lock message.
>
> I'll give (a) a shot -- dunno if I'll get to (b) tonight.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to