guptask
Computer
- Jul 19, 2002
- 1
As in TCP/IP the function recv() will return the receved data, but it may be having more than one message.
I am using SIP prototocol, so my received message is SIP message. I know I can do it by parsing the SIP message and extracting it based on the Content-Length specified in its header.
I am sure there must be some mechanism/api so that
I can get only one message at a time without parsing the actual received data ourself as is done through udp.
I am using SIP prototocol, so my received message is SIP message. I know I can do it by parsing the SIP message and extracting it based on the Content-Length specified in its header.
I am sure there must be some mechanism/api so that
I can get only one message at a time without parsing the actual received data ourself as is done through udp.