On 7/18/05, David Holroyd <[EMAIL PROTECTED]> wrote:
> On Mon, Jul 18, 2005 at 08:02:01AM +0200, Xavi Beumala wrote:
> > where 0x000053bd is a hardcoded value (shm key). When your swf movie is
> > running (the localconnection producer, that is, a swf movie wich sends
> > data to this C application) run ipcs shell command and substitute
> > 0x000053bd with the *key* ID of the shared memory segment (shm) both on
> > the shmget and semget (named semaphores use to have the same ID). For
> > sure there's another way to do this but by now have no idea :P
> 
> The keys are created using ftok(3).  Maybe you can guess what what
> filename to pass to ftok() by looking at the files the flash player
> has open (ls -l /proc/<player_PID>/fd/)?
> 

When I run ipcs, I get many keys, most are 0x00000000, so I'm assuming
I can rule those out, but I get four with values > 0, how do I know
which to use?
0x00005f41 131073     davidr    660        1
0x00002dcb 163842     davidr    660        1
0x00005a9c 262147     davidr    660        1
0x00005c90 294916     davidr    660        1


-David R

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to