I'm going to be running the SWF from "localhost" so it won't have to
go thru the NAT and can run on the user's machine at, e.g.
http://localhost/1234 ...
The Python server is on localhost, too, and will poll it from Flex every 1
second using XMLSocket as advised by Stacey (and I assume the polling can
happen in its own thread without interrupting user interaction with the Flex
UI)
However, the Flex UI will still have to go out to the Internet to communicate
with FES on the remote server and that will use just one protocol on one port
I think you're needs are more advanced than mine.. I don't need to send/receive
binary mode files or handle data streams ... but if and when I have such need
in the future the question becomes: are you going to make your technique
available in an IFBIN example? :)
Thanks
Marc
Ted
Patrick <[EMAIL PROTECTED]>
wrote:
You can run a socket server over port 80
or many common open ports. Plus another thing to keep in mind is that with
Flash Player, connections are initialized from behind the firewall out to the
Internet. Reusing common ports is the simplest answer.
Actually using Python Twisted we have been
able to make servers that support HTTP, Binary Sockets, and XMLSocket over the
same port. Basically you call the server to get the SWF over HTTP on port 80,
then make a socket connection back to the same port using XMLSocket or
flash.net.Socket. It works like a charm.
Cynergy
Systems, Inc.
Theodore Patrick
Sr. Consultant
[EMAIL PROTECTED]
tel: 1.866.CYNERGY
http://www.cynergysystems.com
The issue I ran into with sockets is that not everyone has all of their
ports open, which essentially cuts out a decent portion of users.
--Josh
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 3/9/2006
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/278 - Release Date: 3/9/2006
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006