System.Runtime.Remoting.Channels.RemoteConnection.RemoteConnection C# (CSharp) Méthode

RemoteConnection() private méthode

private RemoteConnection ( SocketCache socketCache, String machineAndPort ) : System
socketCache SocketCache
machineAndPort String
Résultat System
        internal RemoteConnection(SocketCache socketCache, String machineAndPort)
        {
            _socketCache = socketCache;

            _cachedSocketList = new CachedSocketList(socketCache.SocketTimeout, 
                                                                        socketCache.CachePolicy);

            // parse "machinename:port", add a dummy scheme to get uri parsing
            Uri uri = new Uri("dummy://" + machineAndPort);
            string machineName = uri.Host;
            _port = uri.Port;
        
            _machineAndPort = machineAndPort;

            _addressList = Dns.GetHostAddresses(machineName);
            connectIPv6 = Socket.OSSupportsIPv6 && HasIPv6Address(_addressList);
        } // RemoteConnection