Method | Description | |
---|---|---|
Parse ( byte buffer, int offset, int count ) : int |
Continue parsing a message
|
|
ParseFirstLine ( ) : bool | ||
Reset ( ) : void | ||
SipParser ( ) : System |
Initializes a new instance of the SipParser class.
|
Method | Description | |
---|---|---|
OnBodyBytes ( byte bytes, int offset, int count ) : void |
Toggle body bytes event.
|
|
OnComplete ( ) : void |
Raise the MessageComplete event, since we have successfully parsed a message and it's body.
|
|
OnFirstLine ( string words ) : void |
First message line. Used to raise the RequestLineParsed or ResponseLineParsed event depending on the words in the array. |
Method | Description | |
---|---|---|
GetBody ( ) : bool |
Parser method to copy all body bytes. Needed since a TCP packet can contain multiple messages after each other, or partial messages. |
|
GetHeaderName ( ) : bool |
Try to find a header name.
|
|
GetHeaderValue ( ) : bool |
Get header values. Will also look for multi header values and automatically merge them to one line. |
|
OnHeader ( string name, string value ) : void |
protected OnBodyBytes ( byte bytes, int offset, int count ) : void | ||
bytes | byte | |
offset | int | |
count | int | |
return | void |
protected OnFirstLine ( string words ) : void | ||
words | string | Will always contain three elements. |
return | void |
public Parse ( byte buffer, int offset, int count ) : int | ||
buffer | byte | Byte buffer containing bytes |
offset | int | Where to start the parsing |
count | int | Number of bytes to parse |
return | int |