메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
protected OnFirstLine ( string words ) : void | ||
words | string | Will always contain three elements. |
리턴 | 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 |
리턴 | int |