ParseActiveTcpListenersFromFiles() static private method

static private ParseActiveTcpListenersFromFiles ( string tcp4ConnectionsFile, string tcp6ConnectionsFile ) : IPEndPoint[]
tcp4ConnectionsFile string
tcp6ConnectionsFile string
return IPEndPoint[]
 public override IPEndPoint[] GetActiveTcpListeners()
 {
     return(StringParsingHelpers.ParseActiveTcpListenersFromFiles(NetworkFiles.Tcp4ConnectionsFile, NetworkFiles.Tcp6ConnectionsFile));
 }
Exemplo n.º 2
0
 public override IPEndPoint[] GetActiveTcpListeners()
 {
     return(StringParsingHelpers.ParseActiveTcpListenersFromFiles(Socket.OSSupportsIPv4 ? NetworkFiles.Tcp4ConnectionsFile : null,
                                                                  Socket.OSSupportsIPv6 ? NetworkFiles.Tcp6ConnectionsFile : null));
 }