[Asterisk-Dev] Fastman aka Flash-Astman + String Terminations

Matteo Brancaleoni mbrancaleoni at espia.it
Sat Oct 18 09:31:03 MST 2003


Hi.

Tilghman Lesher wrote:

> This is a technical violation of most of the RFCs.  Most protocols
> specify the "\r\n" combination as the line delimiter for network
> traffic.  Requiring a NUL afterwards or instead of this delimiter makes
> this type of string handling unsuitable for most network applications.
> 
> Since Flash is certainly able to deal with HTTP requests and responses
> (which don't embed NULs after every line), it makes me think that this
> NUL is not a requirement, but that there is a different method for
> network applications.  You might want to look into that.

yes, I know. http handling is only for single requests and so on,
can't use a persistent connection. for sockets, flash class
is called XMLSocket and is the only way to have a persistent tcp
connection. of course not only xml, but other raw data could be
sent/received. the null termination is needed by flash to be
able to know that the full message (xml or raw) is fully transmitted.
also jabber or other im servers does this 'null termination'.
unfortunately , there isn't a way to override that.






More information about the asterisk-dev mailing list