예제 #1
0
 internal void setActive(IncomingAsync cb)
 {
     Debug.Assert(_cb == null);
     _cb = cb;
 }
예제 #2
0
파일: Incoming.cs 프로젝트: stick/zeroc-ice
 internal void setActive(IncomingAsync cb)
 {
     Debug.Assert(_cb == null);
     _cb = cb;
 }
예제 #3
0
        //
        // These functions allow this object to be reused, rather than reallocated.
        //
        public override void reset(Instance instance, ResponseHandler handler, Ice.ConnectionI connection,
            Ice.ObjectAdapter adapter, bool response, byte compress, int requestId)
        {
            _cb = null;
            _inParamPos = -1;

            base.reset(instance, handler, connection, adapter, response, compress, requestId);

            //
            // Prepare the response if necessary.
            //
            if(response)
            {
                os_.writeBlob(IceInternal.Protocol.replyHdr);

                //
                // Add the request ID.
                //
                os_.writeInt(requestId);
            }
        }
예제 #4
0
        public override void reclaim()
        {
            _cb = null;
            _inParamPos = -1;

            base.reclaim();
        }
예제 #5
0
 public void killAsync()
 {
     //
     // Always runs in the dispatch thread
     //
     if(_cb != null)
     {
         //
         // May raise ResponseSentException
         //
         _cb.deactivate__(this);
         _cb = null;
     }
 }
예제 #6
0
파일: Incoming.cs 프로젝트: bholl/zeroc-ice
        //
        // These functions allow this object to be reused, rather than reallocated.
        //
        public override void reset(Instance instance, Ice.ConnectionI connection, Ice.ObjectAdapter adapter,
                                   bool response, byte compress, int requestId)
        {
            _cb = null;
            _inParamPos = -1;

            if(_is == null)
            {
                _is = new BasicStream(instance);
            }

            base.reset(instance, connection, adapter, response, compress, requestId);
        }
예제 #7
0
파일: Incoming.cs 프로젝트: bholl/zeroc-ice
        public override void reclaim()
        {
            _cb = null;
            _inParamPos = -1;
            if(_is != null)
            {
                _is.reset();
            }

            base.reclaim();
        }