C# 클래스 SIPSorcery.Sys.IPSocket

파일 보기 프로젝트 열기: sipsorcery/sipsorcery 1 사용 예제들

공개 메소드들

메소드 설명
GetIPEndPoint ( string IPSocket ) : IPEndPoint

Returns an IPv4 end point from a socket address in 10.0.0.1:5060 format.

GetSocketString ( IPEndPoint endPoint ) : string
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 ) : IPEndPoint
ParseSocketString ( string socket, string &host, int &port ) : void

메소드 상세

GetIPEndPoint() 공개 정적인 메소드

Returns an IPv4 end point from a socket address in 10.0.0.1:5060 format.
public static GetIPEndPoint ( string IPSocket ) : IPEndPoint
IPSocket string
리턴 System.Net.IPEndPoint

GetSocketString() 공개 정적인 메소드

public static GetSocketString ( IPEndPoint endPoint ) : string
endPoint System.Net.IPEndPoint
리턴 string

IsIPAddress() 공개 정적인 메소드

public static IsIPAddress ( string socket ) : bool
socket string
리턴 bool

IsIPSocket() 공개 정적인 메소드

public static IsIPSocket ( string socket ) : bool
socket string
리턴 bool

IsPrivateAddress() 공개 정적인 메소드

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
public static IsPrivateAddress ( string host ) : bool
host string
리턴 bool

ParseHostFromSocket() 공개 정적인 메소드

public static ParseHostFromSocket ( string socket ) : string
socket string
리턴 string

ParsePortFromSocket() 공개 정적인 메소드

public static ParsePortFromSocket ( string socket ) : int
socket string
리턴 int

ParseSocketString() 공개 정적인 메소드

public static ParseSocketString ( string socket ) : IPEndPoint
socket string
리턴 System.Net.IPEndPoint

ParseSocketString() 공개 정적인 메소드

public static ParseSocketString ( string socket, string &host, int &port ) : void
socket string
host string
port int
리턴 void