C# 클래스 SIPSorcery.Sys.NetServices

파일 보기 프로젝트 열기: sipsorcery/sipsorcery

공개 프로퍼티들

프로퍼티 타입 설명
Platform PlatformEnum

공개 메소드들

메소드 설명
CallRoute ( ) : string

Calls the operating system command 'route print' to obtain the IP routing information.

CallShellCommand ( string command, string commandLine ) : string
CreateRandomUDPListener ( IPAddress localAddress, IPEndPoint &localEndPoint ) : UdpClient
CreateRandomUDPListener ( IPAddress localAddress, int start, int end, ArrayList inUsePorts, IPEndPoint &localEndPoint ) : UdpClient
CreateRtpSocket ( IPAddress localAddress, int startPort, int endPort, bool createControlSocket, Socket &rtpSocket, Socket &controlSocket ) : void
GetDefaultGateway ( ) : IPAddress

Extracts the default gateway from the route print command

GetDefaultIPAddress ( IPAddress defaultGateway ) : IPAddress

Attempts to get the local IP address that is being used with the default gateway and is therefore the one being used to connect to the internet.

메소드 상세

CallRoute() 공개 정적인 메소드

Calls the operating system command 'route print' to obtain the IP routing information.
public static CallRoute ( ) : string
리턴 string

CallShellCommand() 공개 정적인 메소드

public static CallShellCommand ( string command, string commandLine ) : string
command string
commandLine string
리턴 string

CreateRandomUDPListener() 공개 정적인 메소드

public static CreateRandomUDPListener ( IPAddress localAddress, IPEndPoint &localEndPoint ) : UdpClient
localAddress System.Net.IPAddress
localEndPoint System.Net.IPEndPoint
리턴 System.Net.Sockets.UdpClient

CreateRandomUDPListener() 공개 정적인 메소드

public static CreateRandomUDPListener ( IPAddress localAddress, int start, int end, ArrayList inUsePorts, IPEndPoint &localEndPoint ) : UdpClient
localAddress System.Net.IPAddress
start int
end int
inUsePorts System.Collections.ArrayList
localEndPoint System.Net.IPEndPoint
리턴 System.Net.Sockets.UdpClient

CreateRtpSocket() 공개 정적인 메소드

public static CreateRtpSocket ( IPAddress localAddress, int startPort, int endPort, bool createControlSocket, Socket &rtpSocket, Socket &controlSocket ) : void
localAddress System.Net.IPAddress
startPort int
endPort int
createControlSocket bool
rtpSocket Socket
controlSocket Socket
리턴 void

GetDefaultGateway() 공개 정적인 메소드

Extracts the default gateway from the route print command
public static GetDefaultGateway ( ) : IPAddress
리턴 System.Net.IPAddress

GetDefaultIPAddress() 공개 정적인 메소드

Attempts to get the local IP address that is being used with the default gateway and is therefore the one being used to connect to the internet.
public static GetDefaultIPAddress ( IPAddress defaultGateway ) : IPAddress
defaultGateway System.Net.IPAddress
리턴 System.Net.IPAddress

프로퍼티 상세

Platform 공개적으로 정적으로 프로퍼티

public static PlatformEnum Platform
리턴 PlatformEnum