Beispiel #1
0
            public result_t subscribe(ushort mid, int flags, uint mask, callback_bool cb)
            {
                try {
                    result_t e = _subscribe(client_, mid, flags, mask, cb);

                    if (e == result_t.ERR_OK)
                    {
                        _remember_callback(mid, cb);
                    }

                    return(e);
                }
                catch (Exception e) {
                    Debug.Assert(false, "subscribe() threw exception.", e.ToString());

                    return(result_t.ERR_UNEXPECTED);
                }
            }
Beispiel #2
0
 private static extern result_t _subscribe(IntPtr clent, ushort mid, int flags, uint cmi_mask, callback_bool cb);