Class SIPUDPChannel
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.SIP
Assembly: SIPSorcery.dll
Syntax
public class SIPUDPChannel : SIPChannel, IDisposable
Constructors
| Improve this Doc View SourceSIPUDPChannel(IPAddress, Int32)
Declaration
public SIPUDPChannel(IPAddress listenAddress, int listenPort)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | listenAddress | |
System.Int32 | listenPort |
SIPUDPChannel(IPEndPoint, Boolean)
Declaration
public SIPUDPChannel(IPEndPoint endPoint, bool useDualMode = false)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | endPoint | |
System.Boolean | useDualMode |
SIPUDPChannel(IPEndPoint, Encoding, Encoding, Boolean)
Creates a SIP channel to listen for and send SIP messages over UDP.
Declaration
public SIPUDPChannel(IPEndPoint endPoint, Encoding sipEncoding, Encoding sipBodyEncoding, bool useDualMode = false)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPEndPoint | endPoint | The IP end point to listen on and send from. |
System.Text.Encoding | sipEncoding | |
System.Text.Encoding | sipBodyEncoding | |
System.Boolean | useDualMode | If true then IPv6 sockets will be created as dual mode IPv4/IPv6 on supporting systems. |
Methods
| Improve this Doc View SourceClose()
Closes the channel's UDP socket.
Declaration
public override void Close()
Overrides
| Improve this Doc View SourceDispose()
Declaration
public override void Dispose()
Overrides
| Improve this Doc View SourceHasConnection(SIPEndPoint)
The UDP channel does not support connections. Always returns false.
Declaration
public override bool HasConnection(SIPEndPoint remoteEndPoint)
Parameters
Type | Name | Description |
---|---|---|
SIPEndPoint | remoteEndPoint |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHasConnection(String)
The UDP channel does not support connections. Always returns false.
Declaration
public override bool HasConnection(string connectionID)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionID |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceHasConnection(Uri)
The UDP channel does not support connections. Always returns false.
Declaration
public override bool HasConnection(Uri serverUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | serverUri |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceIsAddressFamilySupported(AddressFamily)
Checks whether the specified address family is supported.
Declaration
public override bool IsAddressFamilySupported(AddressFamily addresFamily)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Sockets.AddressFamily | addresFamily | The address family to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if supported, false if not. |
Overrides
| Improve this Doc View SourceIsProtocolSupported(SIPProtocolsEnum)
Checks whether the specified protocol is supported.
Declaration
public override bool IsProtocolSupported(SIPProtocolsEnum protocol)
Parameters
Type | Name | Description |
---|---|---|
SIPProtocolsEnum | protocol | The protocol to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if supported, false if not. |
Overrides
| Improve this Doc View SourceSendAsync(SIPEndPoint, Byte[], Boolean, String)
Declaration
public override Task<SocketError> SendAsync(SIPEndPoint dstEndPoint, byte[] buffer, bool canInitiateConnection, string connectionIDHint)
Parameters
Type | Name | Description |
---|---|---|
SIPEndPoint | dstEndPoint | |
System.Byte[] | buffer | |
System.Boolean | canInitiateConnection | |
System.String | connectionIDHint |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Net.Sockets.SocketError> |
Overrides
| Improve this Doc View SourceSendSecureAsync(SIPEndPoint, Byte[], String, Boolean, String)
This method is not implemented for the SIP UDP channel.
Declaration
public override Task<SocketError> SendSecureAsync(SIPEndPoint dstEndPoint, byte[] buffer, string serverCertificateName, bool canInitiateConnection, string connectionIDHint)
Parameters
Type | Name | Description |
---|---|---|
SIPEndPoint | dstEndPoint | |
System.Byte[] | buffer | |
System.String | serverCertificateName | |
System.Boolean | canInitiateConnection | |
System.String | connectionIDHint |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Net.Sockets.SocketError> |
Overrides
Implements
System.IDisposable