actionscript 3 - How to create flash socket policy files to open port 843 for flash application in Apache server run on windows -


i creating real time application , have come across html5 web-socket ideal technique on ajax long polling. web-socket not guaranteed run in every browser. tested ie-8 , ie-9, not supported in versions.

i found web-socket-js seems perfect fallback browser not supporting modern web-socket. uses flash carry out task. since flash 9, flash application required flash socket policy file access port 843. have researchd in article setting flash socket policy not find solution works apache installed in windows. how should create policy file , should put it. confused.

a policy file dictates hosts .swf files can access services on server. policy file server tcp server hosts master policy file (an xml document) on port 843. flash player first attempts access master policy file on port, if doesn't find policy file, requests file on port on trying fetch data.

that means flash player makes 2 network requests. 1 goes port 843 default. if request times out (in 3 seconds) makes second request port making connection (presuming it's port 80 in case).

if remember correctly, request made following url -

hostname:port//crossdomain.xml

in case, think might matter of putting master policy file in root of web server. apache uses documentroot directive in .conf file identify directory.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -