[Freeswitch-users] Confused with event content lengths

2009-06-28 Thread Nik Middleton
Hi Guys, I'm trying to parse events in C++ for an outbound socket. The docs are a little contradictory, so I wonder if someone could help me out. As I understand it and event is terminated with double LF's (\n\n) However if there is a Content-Length header the wiki very confusingly says

Re: [Freeswitch-users] Confused with event content lengths

2009-06-28 Thread João Mesquita
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

Re: [Freeswitch-users] Confused with event content lengths

2009-06-28 Thread Nik Middleton
...@lists.freeswitch.org] On Behalf Of Brian West Sent: 28 June 2009 20:23 To: freeswitch-users@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

Re: [Freeswitch-users] Confused with event content lengths

2009-06-28 Thread Nik Middleton
To: freeswitch-users@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