C# Class SipSharp.Transports.UdpTransport

Transports messages over UDP.
Inheritance: ITransport
Datei anzeigen Open project: jgauffin/SipSharp Class Usage Examples

Public Methods

Method Description
Send ( EndPoint endPoint, byte buffer, int offset, int count ) : void
Start ( ) : void

Start transport.

UdpTransport ( IPEndPoint listeningPoint, MessageFactory parsers ) : System

Initializes a new instance of the UdpTransport class.

Protected Methods

Method Description
CreateSocket ( ) : Socket

Create a new UDP socket.

Private Methods

Method Description
OnRead ( IAsyncResult ar ) : void

Received a message from remote end point.

OnSendComplete ( IAsyncResult ar ) : void

Method Details

CreateSocket() protected method

Create a new UDP socket.
protected CreateSocket ( ) : Socket
return Socket

Send() public method

public Send ( EndPoint endPoint, byte buffer, int offset, int count ) : void
endPoint System.Net.EndPoint
buffer byte
offset int
count int
return void

Start() public method

Start transport.
is not of the type expected by the transport implementation endPoint is null.
public Start ( ) : void
return void

UdpTransport() public method

Initializes a new instance of the UdpTransport class.
public UdpTransport ( IPEndPoint listeningPoint, MessageFactory parsers ) : System
listeningPoint System.Net.IPEndPoint End point to accept new connections on.
parsers SipSharp.Messages.MessageFactory The parsers.
return System