Jump to content

XMLSockets


xenophobia

Recommended Posts

I had download the scripts file from here:

http://www.devpro.it/xmlsocket/

 

which using the flash' xmlsocket object to communicate with the server.

 

I had a php5apahce2 server installed in winXP pro.

 

So I do accordingly to the readme instructions which initialized the server sockets using this command (CMD):

php -q Run_XMLSocketServer.php

 

Which listening the port:2000 on local server.

 

I had a client demo site: index.html which connect to this socket.

 

When I click on the connect button, in my command prompt, I see this:

New client on XMLSocketServer 127.0.0.1:1312

23 bytes received from client 127.0.0.1:1312

Client Disconnected 127.0.0.1:1312

 

I did not click on the disconnect button while it disconnected automatically for me.

 

Also, I noticed the client's port number (1312) is change each time I connect.

 

What is the problem? My browser is using flash player 9 and I tried on IE and FF and Safari, all is the same result.

 

Any idea? Thanks in advanced.

Link to comment
https://forums.phpfreaks.com/topic/114780-xmlsockets/
Share on other sites

Seems like I did not explain well my problem.

 

Anyway, I had a new question which related to this topics.

 

If I want to do an online instant communication within client (surfer), how can I do that?

 

For example, under certain circumstance, an event from a client send a message to the server, the server catch the response and send the message to all the others client through web browser. Is something similiar with the xmlSocket in Flash. But is there any article or library for free?

 

Just give me a redirect link will do, I do my own research.

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/114780-xmlsockets/#findComment-593991
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.