Метод | Описание | |
---|---|---|
GetIPEndPoint ( string IPSocket ) : |
Returns an IPv4 end point from a socket address in 10.0.0.1:5060 format.
|
|
GetSocketString ( |
||
IsIPAddress ( string socket ) : bool | ||
IsIPSocket ( string socket ) : bool | ||
IsPrivateAddress ( string host ) : bool |
Checks the Contact SIP URI host and if it is recognised as a private address it is replaced with the socket the SIP message was received on. Private address space blocks RFC 1597. 10.0.0.0 - 10.255.255.255 172.16.0.0 - 172.31.255.255 192.168.0.0 - 192.168.255.255
|
|
ParseHostFromSocket ( string socket ) : string | ||
ParsePortFromSocket ( string socket ) : int | ||
ParseSocketString ( string socket ) : |
||
ParseSocketString ( string socket, string &host, int &port ) : void |
public static GetIPEndPoint ( string IPSocket ) : |
||
IPSocket | string | |
Результат |
public static GetSocketString ( |
||
endPoint | ||
Результат | string |
public static IsIPAddress ( string socket ) : bool | ||
socket | string | |
Результат | bool |
public static IsIPSocket ( string socket ) : bool | ||
socket | string | |
Результат | bool |
public static IsPrivateAddress ( string host ) : bool | ||
host | string | |
Результат | bool |
public static ParseHostFromSocket ( string socket ) : string | ||
socket | string | |
Результат | string |
public static ParsePortFromSocket ( string socket ) : int | ||
socket | string | |
Результат | int |
public static ParseSocketString ( string socket ) : |
||
socket | string | |
Результат |
public static ParseSocketString ( string socket, string &host, int &port ) : void | ||
socket | string | |
host | string | |
port | int | |
Результат | void |