\0 at the end of packets

These are old archives. They are kept for historic purposes only.
Locked
yanush
Posts: 2
Joined: Sun Jul 17, 2005 10:56 pm
Contact:

\0 at the end of packets

Post 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.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

I believe there's a flash client on SourceForge. You could see how they've done things.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
yanush
Posts: 2
Joined: Sun Jul 17, 2005 10:56 pm
Contact:

Post 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
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post 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.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
anshkakashi

Post 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*
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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.
Locked