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:
The connection is a full-duplex TCP/IP stream, and there is no limit on the amount of XML messages that can be sent over the course of the connection.
Port numbers below 1024 are not allowed.
The Flash Lite application can only connect to services available from ports in the same domain, unless a cross-domain policy file is used.
For a tutorial on using network sockets with Flash Lite, see document Developing multiplayer applications with Flash Lite XMLSockets at Adobe Developer Central.