1
Network / Socket Server -- send cross domain policy to Flash Client
« on: February 23, 2011, 07:15:25 pm »
I was able to solve this by compacting the cross domain policy file 'flattened' into a single string and sending it off to the Flash client when the client first establishes a connection, like so:
Seems to work o.k. Hopefully this post helps others out
Code: [Select]
// client just established connection with socket server,
// send cross domain policy info
char ToSend[] = "<?xml version='1.0'?>< ... etc";// i abbreviated this, you would want the full policy file in this string.
Client.Send(ToSend, sizeof(ToSend));
Seems to work o.k. Hopefully this post helps others out