gnash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash] LocalConnection::connect() block ?


From: Rob Savoye
Subject: [Gnash] LocalConnection::connect() block ?
Date: Sat, 04 Feb 2006 23:16:01 -0700
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)

This is probably a dumb question, but... I was wondering if calling LocalConnection::connect() to receive a SWF "message" blocks until a message is sent by a client, or does it return with an error if nothing is waiting ? Or start a background thread to process messages ? The clean docs I've found on the net don't really say.

I've implemented chunks of NetConnection and LocalConnection today, and was wondering. I don't see any event handlers for incoming data as in XMLSocket, so I'm assuming the call blocks until a message is received... and LocalConnection::connect() must be called for each new message. Or does LocalConnection::connect() function like a main event loop, and just keep processing methods for the client ? Seems to be a simple RPC mechanism.

        - rob -




reply via email to

[Prev in Thread] Current Thread [Next in Thread]