[wxPython-users] Re: Having a single instance and forwarding
document open requests
Doug Anderson
doug at vitamindinc.com
Thu Sep 27 09:31:12 PDT 2007
Chris,
The following is in my python manual (which made me give up on named =
pipes, which would have been perfect). Specifically, the =
"Availability" section turned me off to it, since it didn't include =
Windows:
mkfifo(path[, mode ])
Create a FIFO (a named pipe) named path with numeric mode mode. The =
default mode is 0666 (octal). The
current umask value is first masked out from the mode. Availability: =
Macintosh, UNI X.
FIFOs are pipes that can be accessed like regular files. FIFOs exist =
until they are deleted (for example with
os.unlink()). Generally, FIFOs are used as rendezvous between =
=93client=94 and =93server=94 type processes: the
server opens the FIFO for reading, and the client opens it for =
writing. Note that mkfifo() doesn=92t open the
FIFO =97 it just creates the rendezvous point.
-Doug
---
On Sep 27, 2007, at 11:23 AM, Chris Mellon wrote:
> On 9/27/07, Doug Anderson <doug at vitamindinc.com> wrote:
>> Steve,
>>
>> Thanks for your answers, but I don't think they are particularly
>> useful in my case.
>>
>> * Specifically, I am trying to support Windows, which doesn't have
>> portmap on 111 (at least, not on my Windows box). ...and yes, I know
>> Windows is a pain in the butt sometimes, but I still need to =
>> support it.
>>
>> * Yes, you can have multiple TCP connections through a single port
>> number. I have spent quite a bit of time with TCP/IP. ...but I
>> don't think you're understanding my usage model. I'm writing a GUI
>> app. What does that mean? Let's think through it on Windows (Mac
>> and Unix have similar concepts, and yes I know that Unix came up with
>> it first). We'll choose port 12356, as an example. If you log in
>> with the user Steve and start up the app, it will now listen on port
>> 12356. Now, I leave user Steve logged in and log in with user Doug.
>> Now, the user Doug tries to start the GUI app. If I don't choose a
>> different port, Steve's program will get my TCP requests.
>>
>> * Yes, my XMLRPC glance was very quick. I will admit that. If you
>> think I should give it another glance (now that you understand my
>> usage), I will.
>>
>> * <Sigh> Sadly, ignorance is contagious. I will admit that I have a
>> pretty bad strain of it, but I am at least trying to get better. ;)
>>
>> -Doug
>>
>
> I suggest using named pipes, rather than TCP. This should work in =
> Windows, too.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users- =
> help at lists.wxwidgets.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200709=
27/1d3b1140/attachment.htm
More information about the wxpython-users
mailing list