//      private bool _callbacksInstalled = false;

        private void setCallbacks()
        {
            _receiveDelegate = new ReceiverDelegate(receiveOutput);
            _joinDelegate    = new SubscriberDelegate(sessionSubscriber);
            _queryDelegate   = new IncomingQueryDelegate(incomingQuery);
            _xferDelegate    = new IncomingXferDelegate(xferHandler);
            GC.KeepAlive(_queryDelegate);
            GC.KeepAlive(_xferDelegate);
            GC.KeepAlive(_receiveDelegate);
            GC.KeepAlive(_joinDelegate);
        }
 //      private bool _callbacksInstalled = false;
 private void setCallbacks()
 {
     _receiveDelegate = new ReceiverDelegate(receiveOutput);
     _joinDelegate = new SubscriberDelegate(sessionSubscriber);
     _queryDelegate = new IncomingQueryDelegate(incomingQuery);
     _xferDelegate = new IncomingXferDelegate(xferHandler);
     GC.KeepAlive(_queryDelegate);
     GC.KeepAlive(_xferDelegate);
     GC.KeepAlive(_receiveDelegate);
     GC.KeepAlive(_joinDelegate);
 }
Exemple #3
0
 private static extern void SetIncomingXferInterface(
     [MarshalAs(UnmanagedType.FunctionPtr)] IncomingQueryDelegate qcb,
     [MarshalAs(UnmanagedType.FunctionPtr)] IncomingXferDelegate xcb);
Exemple #4
0
 // XferObject
 public void SetLocalIncomingXferInterface(IncomingQueryDelegate qcb, IncomingXferDelegate xcb)
 {
     SetIncomingXferInterface(qcb, xcb);
 }
Exemple #5
0
 // XferObject
 public void SetLocalIncomingXferInterface(IncomingQueryDelegate qcb, IncomingXferDelegate xcb)
 {
     SetIncomingXferInterface(qcb, xcb);
 }