Class SIPProtocolsType
Inheritance
System.Object
SIPProtocolsType
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 static class SIPProtocolsType
Methods
| Improve this Doc View SourceGetProtocolType(String)
Declaration
public static SIPProtocolsEnum GetProtocolType(string protocolType)
Parameters
Type | Name | Description |
---|---|---|
System.String | protocolType |
Returns
Type | Description |
---|---|
SIPProtocolsEnum |
GetProtocolTypeFromId(Int32)
Declaration
public static SIPProtocolsEnum GetProtocolTypeFromId(int protocolTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | protocolTypeId |
Returns
Type | Description |
---|---|
SIPProtocolsEnum |
IsAllowedProtocol(String)
Declaration
public static bool IsAllowedProtocol(string protocol)
Parameters
Type | Name | Description |
---|---|---|
System.String | protocol |
Returns
Type | Description |
---|---|
System.Boolean |
IsConnectionless(SIPProtocolsEnum)
Returns true for connectionless transport protocols, such as UDP, and false for connection oriented protocols.
Declaration
public static bool IsConnectionless(SIPProtocolsEnum protocol)
Parameters
Type | Name | Description |
---|---|---|
SIPProtocolsEnum | protocol | The protocol to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the protocol is connectionless. |