BadConnection() public method

public BadConnection ( NodeConnection n ) : void
n NodeConnection
return void
Beispiel #1
0
        void Connect(string nodeAddress, ushort port = 8333)
        {
            // Connect to remote host
            try
            {
                Console.WriteLine("Connecting to: " + nodeAddress);
                mSocket.Connect(nodeAddress, port);
                Console.WriteLine("connected to: " + nodeAddress + ":" + port);

                // Send version packet
                SendVersionPacket();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                mOwner.BadConnection(this);
            }
        }