Setting up XML socket connectivity

A network socket is a communication mechanism that makes a connection between devices through programs constant. More particularly, the endpoints for sending and receiving data between computers are referred to as sockets. Socket connections usually utilize a client-server model.

In Flash Lite, the client endpoint is the mobile device and the other endpoint is composed of a remote IP address / network port pair. After a socket connection has been established, the client device can access a set of services on the server machine without renewing the network access continuously. This results in reliable low-latency network services.

Flash Lite uses the XMLSocket object to allow Flash content to use socket communication. The socket can transfer XML-formatted data as well as plain text.

There are several considerations regarding XMLSockets:

For a tutorial on using network sockets with Flash Lite, see document Developing multiplayer applications with Flash Lite XMLSockets at Adobe Developer Central.