Пример #1
0
        internal MeshClient(MeshSettings settings, MeshPeer peer)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }
            if (peer == null)
            {
                throw new ArgumentNullException(nameof(peer));
            }

            _Settings = settings;
            PeerNode  = peer;

            Logger?.Invoke("[MeshClient] Initialized to connect to " + PeerNode.IpPort);
        }
 internal ServerConnectionEventArgs(MeshPeer peer)
 {
     PeerNode = peer;
 }