C# Class SipSharp.Transports.UdpTransport

Transports messages over UDP.
Inheritance: ITransport
Afficher le fichier Open project: jgauffin/SipSharp Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
CreateSocket ( ) : Socket

Create a new UDP socket.

Private Methods

Méthode Description
OnRead ( IAsyncResult ar ) : void

Received a message from remote end point.

OnSendComplete ( IAsyncResult ar ) : void

Method Details

CreateSocket() protected méthode

Create a new UDP socket.
protected CreateSocket ( ) : Socket
Résultat Socket

Send() public méthode

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

Start() public méthode

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

UdpTransport() public méthode

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.
Résultat System