var net = require("net"),
net.createServer( function(socket) {
socket.on("connect", function(d){
socket.write("<cross-domain-policy><allow-access-from domain='*' to-ports='*' secure='false' /></cross-domain-policy>\0");
});
socket.on("data", function(str){
console.log("data: " +str);
socket.write(str);
});
}).listen(3000);;