On 23 feb 2005, at 17:45, Cole Tierney wrote:
arri wrote:
what i want is just send some xml to a server, and listen for XML from the server. i managed to create an XMLSocket and XMLObject in lingo (from the message-window), i manage to populate the XMLObject with xml, i manage to connect the Socket (or better, it reports true/1 when i let it connects... is it then?) but when i try sending the XML, the server doesn't recieve anything.
i'm using nc (netcat) as a server to test locally (osx)

I havn't worked with flash XMLSockets, but I'm assuming they connect on port 80(?). Are you using the -l option with netcat? Need to run as root for that. You might also want to to confirm that nc is listening on the port you're using. Try something like the following, after starting netcat:
netstat -an | grep LISTEN$

i guess you have to be root when using ports below 1024,
but for both xmlsocket objects and nc i set my own ports, e.g. 7777
i used the -l option, and that works fine when i telnet to that nc-server..


apart from that, after i wrote the mail i realised that XMLSockets use udp,
which means i should also use -u for nc, but that didn't change much, it still doesn't work..


what does work all of a sudden, is to make a 'global flash object' ..
don't know why it failed in the first place. but i still don't manage to send/recieve xml..


anyway, thanks for your respons
i'll let you know what happens.

\rri

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to