Re: [Freeswitch-users] Detecting End of Content on Socket Interface

2008-10-23 Thread Klaus Teller
[Freeswitch-users] Detecting End of Content on Socket Interface > As soon as the socket reads even one byte of input it will never send any > events until it has fully parsed the input packet and replied to it. In > the > unlikely event of an event being delivered over the socket with pe

Re: [Freeswitch-users] Detecting End of Content on Socket Interface

2008-10-22 Thread Anthony Minessale
As soon as the socket reads even one byte of input it will never send any events until it has fully parsed the input packet and replied to it. In the unlikely event of an event being delivered over the socket with perfect timing to be received as soon as you put in a command you would have to cach

[Freeswitch-users] Detecting End of Content on Socket Interface

2008-10-22 Thread Klaus Teller
Hi, I have a pretty silly question here, so please bear with me. When reading events through a socket (socket event interface), it is said that i should either wait for 2CR or if the content length was specified, i must continue reading until i got the exact number of bytes from the input stre