Hi - I'm beating my head against a wall!!!!! I have a very
simple XMLSocket .as file that never fires any events. I've written
a very simple TCP Server in C# that receives a valid connection
from my little flex app - but after that I can't get anything to
go. I can't even get the onConnect event to fire.
The TCP server works fine in C#. I can send stuff up to it
using other TCP connection programs and it works well. What happens
in Flex is this.
1) The flex client connects to the TCP and sends the string
<policy-file-request/>. The TCP server receives it just fine
and displays it for me no problem.
After that - nothing. No events fire on the Flex client side
at all. Nothing. It hangs. I can't ping back to the client, i don't
get an onConnect event nothing. HELP!!!
Can someone give me something to try here? I really need help
Thanks for your response. Somehow I managed to get this to
work. Now I have a fully functioning C# TCP server and flash events
What I did was I forced the first response down to the flex
client to be a policy file (xml file). I scanned around and found
the required format and sent down the policy file to open up the
right port on my local machine. That got the onConnect event to
fire (once I sent down the policy file in the correct format).
Next, I experimented with multiple sends down to the client, and
the event fired if I sent down properly formatted XML with a
correct termination character 0x00 (null character).