C# Класс SIPSorcery.Sys.NetServices

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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