3 ms·
Flash did have raw TCP sockets support. It did have some security built in though. When you opened a socket, the flash player itself would first connect to the
by grishka 4y ago
Flash did have raw TCP sockets support. It did have some security built in though. When you opened a socket, the flash player itself would first connect to the address and port you specified, send the string `<policy-file-request/>` and expect the server to respond with the contents of the crossdomain.xml file (the same kind used for HTTP requests from flash) allowing the app to connect. It would then close the connection, and, if it's satisfied with the cross-domain policy, reconnect again and hand this socket over to the app.