C# 클래스 SipSharp.Messages.MessageFactory

Parses and builds messages

The message factory takes care of building messages from all end points.

Since both message and packet protocols are used, the factory hands out contexts to all end points. The context keeps a state to be able to parse partial messages properly.

Each end point need to hand the context back to the message factory when the client disconnects (or a message have been parsed).

파일 보기 프로젝트 열기: jgauffin/SipSharp 1 사용 예제들

공개 메소드들

메소드 설명
MessageFactory ( HeaderFactory factory ) : System

비공개 메소드들

메소드 설명
CreateBuilder ( ) : MessageFactoryContext
CreateNewContext ( EndPoint ep ) : MessageFactoryContext

Create a new message factory context.

A context is used to parse messages from a specific endpoint.

CreateRequest ( string method, string path, string version ) : Request
CreateResponse ( string version, StatusCode statusCode, string reason ) : Response
OnRequest ( object sender, RequestEventArgs e ) : void
OnResponse ( object sender, ResponseEventArgs e ) : void
Release ( MessageFactoryContext factoryContext ) : void

Release a used factoryContext.

메소드 상세

MessageFactory() 공개 메소드

public MessageFactory ( HeaderFactory factory ) : System
factory SipSharp.Messages.Headers.HeaderFactory
리턴 System