Reads one complete SIP message off a framed reader, or null at end of stream.
null
Reads the header block up to the blank-line separator, parses it to learn Content-Length, then reads the body. Leading keep-alive CRLFs between messages are skipped.
Content-Length
CRLF
The buffered socket reader.
Optional
Optional per-read deadline.
The parsed message, or null if the peer closed the connection.
If a header block is malformed.
If timeoutMs elapses.
timeoutMs
1.0.3
Reads one complete SIP message off a framed reader, or
nullat end of stream.Reads the header block up to the blank-line separator, parses it to learn
Content-Length, then reads the body. Leading keep-aliveCRLFs between messages are skipped.