Page 1 of 1
\0 at the end of packets
Posted: Sun Jul 17, 2005 11:07 pm
by yanush
Hi, as you probably know, flash has the ability to communicate with servers through XMLSockets. the problem is these sockets MUST end with a null sign (\0). is it possible to include a module that will send at the end of each packet "\0"? i prefer it would only do that on a specific port which i'll be using to connect my flash irc clients.
Posted: Mon Jul 18, 2005 12:45 am
by w00t
I believe there's a flash client on SourceForge. You could see how they've done things.
Posted: Mon Jul 18, 2005 7:16 am
by yanush
well i'm gonna take a look at it, but as long as it comes to flash, the only solution for this problem is using some sord of a proxy/gateway box that'll translate each packet and add \0 at the end of it. the problem when using this type of solution is u end up with all users with the same ip
Posted: Tue Jul 19, 2005 9:39 am
by w00t
erm, adding \0 to the packets won't fix this. This is because the actual location the clients are connecting from is the flash applet, which is on the same IP. The same problem occurs with CGI:IRC. This is on the todo list to be fixed however I believe.
Posted: Thu Aug 18, 2005 8:54 am
by anshkakashi
I would also like to see this... we are trying to use Flash for an IRC client, but we don't want the gateway in between.
XMLSocket requires an ending ascii null terminate "\0". *sigh*
Posted: Thu Aug 18, 2005 9:03 am
by Stealth
All IRC packets end in a CRLF by protocol. A \0 will not be added, ever. There is at least 1 known workaround (Google for Flash IRC I think it is), and use their method.