Re: tcp support for sip message

Jon Ringle <[email protected]> Fri, 21 Jan 2005 16:12:46 -0500
Newsgroups gmane.comp.lib.vovida.vocal
Message-ID <[email protected]>
On Friday 21 January 2005 01:26 pm, Steve wrote:
> Does vovida 1.4 release support tcp for sip message?
I'm not sure if 1.4 does tcp. I believe that 1.5 does.

> If it does, how it read each sip message? Each sip
> message has different length. How tcp know how many
> bytes to read for each message?

With a streaming protocol such as tcp the process is to first read until you 
reach the byte sequence "\r\n\r\n". At this point you have the headers. In 
the headers there will be a header Content-Length. The content-length will 
tell you exactly how many bytes is the body. See RFC3261 section 7.4.2, 7.5 
and 18.3.

Jon

_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal