flex - How to implement HTTP Tunneling -


I connected a flash client to a back-end server to exchange data.

(1) Web (HTTP) server - listen by default on port 80

(2) I have written my server from scratch, socket / Application-server - listen to port 443 by default.

Just for FYI reasons, both servers run on the same process location, they are not expecting heavy load, so I Okay with me

As soon as Flash client is served to the browser from an HTTP socket, the customer tries to open an XMLSocket in the socket / application server.

I want to implement the HTTP tunnel now, so that my client can connect to the application server, even though the user is behind the firewall. I do not include any external server (proxy etc.) - just use the server I already have.

My question:

(1) Is Port 443 better to use that? (Is it a better firewall?)

(2) As far as I can see, what I have to do, is to make sure that my actual application data is explained in an HTTP structure only (Already a dummy HTTP header), from both client and server sides. Is it the same or am I missing anything here?

(3) Do I need to hide every message in the socket / repeat my data, or can I explain the first message when opening the connection?

Thank you in advance! Fuses

Do not recapture the wheel - Use Remoting via AMF protocol AMF is a HTTP- Based binary format that performs serialization between Action Script (MXML) and Server Side Language. Technically, this HTTP tunnel offers blazads (open source) and LCDs (commercial) implementation for AD / Java, but AMF for AS / PHP, AS / Python, AS / Ruby, AS / NET There are third party implementations. >

BTW, AMF is an open source format.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -