Bidirectional XML support How it works ============= The Client opens a HTTP/1.0 connection to the server. Using that connection, client and server can exchange data in both directions. Server-to-client communication is done the traditional way. The server just sends more and more data. Client-to-server communication is similar: After sending the HTTP request and receiving the HTTP response header, the client can continue sending data through the already established connection. IRCG will notice the incoming data and deliver it to an arbitrary server using a HTTP POST. This invokes e.g. a PHP script which can operate on the data and cause further actions. IRCG PHP API ============ bool ircg_set_on_read_data(int connection, string host, int port, string data); Parameters: connection: IRCG id as returned by ircg_pconnect host: Hostname or IP of the HTTP server (usually "127.0.0.1") port: e.g. 80 data: Beginning of the HTTP header (see example a few lines later) PHP/Flash Example ================= Login snippet ------------- #event'); } sock.onXML = function (xmlObj) { // process XML data in xmlObj, e.g. update display } http_response = false; sock.connect("your.web.server", 8000);