Ask a Question related to Macromedia Flash, Design and Development.
-
jog #1
XML Socket - Header conundrum...
I'm desperately trying to found out how to add a header to my socket
message sends. I'm communicating via flash to a c++ server, and of
course all the flash sent messages end in a null.
HOWEVER, this is an industrial, processor intensive bit of software,
and scanning every char that comes into the C++ server for a null is
really inefficient. Much better if I could include a 2 byte header
announcing the messages length from flash. I cannot find anyway to do
this and its driving me crazy, including invading my dreams!
I tried converting the message length to two ascii character
equivalents and appending them to the front of the XML message before
sending it, but of course found that if the message length is less
than 256 characters, well the first byte of the message length will be
a zero - which reads as a null character, so ending the message before
it starts!
Does anyone have any idea how I could solve this sticky issue (if its
even possible)? Any pointers or advice will be incredibly appreciated,
and I'd be in debt to your goodself :)
jog
jog Guest
-
Module naming conundrum
Greetings, all. I have three modules I am preparing for submission to CPAN, but I freely confess that I can't come up with decent names for them. ... -
update conundrum
Hey, I have a slight issue on my hands and don't know how to approach it. Here's my situation: I have a form which allows the user to update... -
Socket.accept problem via Socket.for_fd($stdin.fileno)
Hi, I am experiencing a rather infuriating problem with Socket.accept on Windows XP. The problem exists when I try to create a Socket from... -
color conundrum
Is there any speedy way to replace either black or white in an image with another color? "Replace color" only gives shades of gray as options, and... -
keyboard conundrum
Alan Coopersmith <alanc@alum.calberkeley.org> wrote in message news:<bd5tvj$2omc$3@agate.berkeley.edu>... If not using XKB, the offset is So in... -
Jeckyl #2
Re: XML Socket - Header conundrum...
write out the two bye length encoded as a four character hex string .. eg if
length is 255, write out 00FF (say)
--
All the best,
Jeckyl
Jeckyl Guest



Reply With Quote

