C# 클래스 SipSharp.Transports.TransportLayer

Responsible of transporting messages to/from end points.

The transport manager inspects messages to be able to determine where they should be send. It will then serialize the message and send it using the appropiate protocol. It will automatically create a new socket if no socket exists to the destination.

The manager will switch protocol from UDP to TCP if the max UDP packet size is exceeded.

Incoming messages are handled by the MessageFactory. Hook its events to be able to handle them.

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

공개 메소드들

메소드 설명
Register ( ITransport transport ) : void

Register a new transport implementation.

Send ( IRequest request ) : void
Send ( IResponse response ) : void
Start ( ) : void

Start layer.

TransportLayer ( MessageFactory messageFactory ) : System

Initializes a new instance of the TransportLayer class.

보호된 메소드들

메소드 설명
CreateEndPoint ( IRequest request ) : EndPoint

Create a endpoint for the destination that should be reached.

비공개 메소드들

메소드 설명
GetMessage ( IRequest request ) : string
GetMessage ( IResponse response ) : string
OnRequest ( object sender, RequestEventArgs e ) : void
OnResponse ( object sender, ResponseEventArgs e ) : void

메소드 상세

CreateEndPoint() 보호된 메소드

Create a endpoint for the destination that should be reached.
protected CreateEndPoint ( IRequest request ) : EndPoint
request IRequest Request to send
리턴 System.Net.EndPoint

Register() 공개 메소드

Register a new transport implementation.
Server have already been started.
public Register ( ITransport transport ) : void
transport ITransport
리턴 void

Send() 공개 메소드

public Send ( IRequest request ) : void
request IRequest
리턴 void

Send() 공개 메소드

public Send ( IResponse response ) : void
response IResponse
리턴 void

Start() 공개 메소드

Start layer.
public Start ( ) : void
리턴 void

TransportLayer() 공개 메소드

Initializes a new instance of the TransportLayer class.
public TransportLayer ( MessageFactory messageFactory ) : System
messageFactory SipSharp.Messages.MessageFactory
리턴 System