FROM : Timothy J.Wood
DATE : Tue Dec 21 19:58:47 2004
On Dec 21, 2004, at 12:43 AM, Stéphane Corthésy wrote:
> 1) Start server (i.e. tool), and pass it a globally unique connection
> name ([[NSProcessInfo processInfo] globallyUniqueString]) through
> stdin, when launching it via a NSTask
The generated string is pretty easily guess-able, I think (MAC addr,
time stamp, pid, etc), and so probably isn't a good idea for secure
apps.
Instead, you might consider reading N bytes of /dev/random and
formatting that into a name, or possibly better using the DO-over-TCP
example code. You could then set up the TCP ports in your process
before forking, then fork and set up the connection w/o ever
registering anywhere.
-tim
DATE : Tue Dec 21 19:58:47 2004
On Dec 21, 2004, at 12:43 AM, Stéphane Corthésy wrote:
> 1) Start server (i.e. tool), and pass it a globally unique connection
> name ([[NSProcessInfo processInfo] globallyUniqueString]) through
> stdin, when launching it via a NSTask
The generated string is pretty easily guess-able, I think (MAC addr,
time stamp, pid, etc), and so probably isn't a good idea for secure
apps.
Instead, you might consider reading N bytes of /dev/random and
formatting that into a name, or possibly better using the DO-over-TCP
example code. You could then set up the TCP ports in your process
before forking, then fork and set up the connection w/o ever
registering anywhere.
-tim
| Related mails | Author | Date |
|---|---|---|
| Tjark Derlien | Dec 20, 23:37 | |
| Stéphane Corthésy | Dec 21, 09:43 | |
| Timothy J.Wood | Dec 21, 19:58 |






Cocoa mail archive

