Пример #1
0
    IntPtr GetHandle()
    {
        // this is a C# expansion of Egal.GetHandle()
        IntPtr ccn = Egal.ccn_create();

        if (Egal.ccn_connect(ccn, "") == -1)
        {
            print("could not connect to ccnd.\n");
        }
        else
        {
            print("a handle is connected to ccnd.");
        }
        return(ccn);
    }