[Freeswitch-users] Confused with event content lengths

Nik Middleton nik.middleton at noblesolutions.co.uk
Sun Jun 28 15:40:20 PDT 2009


OK, finally figured it out.

Have updated the Wiki to remove ambiguity and posted some SUDO code

Regards,

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Nik Middleton
Sent: 28 June 2009 20:38
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Confused with event content lengths

But from where? After the double LF of the header as one part of the wiki says or after the line containing the content-length that another part of the wiki says?


-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Brian West
Sent: 28 June 2009 20:23
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Confused with event content lengths

Yes it says 264 bytes read exactly 264 bytes or die trying.

/b

On Jun 28, 2009, at 1:57 PM, João Mesquita wrote:

> If I am not mistaken, you are always safe reading the amount data  
> expressed on Content-Length since it is calculated based on the  
> total message length before it is sent out of FS.
>
> From a protocol point of view, it would indeed be much better to  
> rely on something such as Content-Length then \n\n termination  
> string. As I get to know more and more the core developers, I doubt  
> they would rely on the latter.
>
> Hope it helps...
>
> jmesquita


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list