C# Class SIPSorcery.Sys.NetServices

Afficher le fichier Open project: sipsorcery/sipsorcery

Méthodes publiques

Свойство Type Description
Platform PlatformEnum

Méthodes publiques

Méthode Description
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.

Method Details

CallRoute() public static méthode

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

CallShellCommand() public static méthode

public static CallShellCommand ( string command, string commandLine ) : string
command string
commandLine string
Résultat string

CreateRandomUDPListener() public static méthode

public static CreateRandomUDPListener ( IPAddress localAddress, IPEndPoint &localEndPoint ) : UdpClient
localAddress System.Net.IPAddress
localEndPoint System.Net.IPEndPoint
Résultat System.Net.Sockets.UdpClient

CreateRandomUDPListener() public static méthode

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
Résultat System.Net.Sockets.UdpClient

CreateRtpSocket() public static méthode

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
Résultat void

GetDefaultGateway() public static méthode

Extracts the default gateway from the route print command
public static GetDefaultGateway ( ) : IPAddress
Résultat System.Net.IPAddress

GetDefaultIPAddress() public static méthode

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
Résultat System.Net.IPAddress

Property Details

Platform public_oe static_oe property

public static PlatformEnum Platform
Résultat PlatformEnum