예제 #1
0
 public LongPoll(HServerR pthis, BMessage methodResult)
 {
     if (log.isDebugEnabled())
     {
         log.debug("LongPoll(" + methodResult);
     }
     this.pthis = pthis;
     if (methodResult != null)
     {
         this.methodResult = methodResult;
     }
     else
     {
         BOutput outp = pthis.transport.getOutput();
         outp.header.flags |= BMessageHeader.FLAG_RESPONSE;
         outp.store(null);                 // irgendwas, damit auch der Header in den ByteBuffer geschrieben wird.
         this.methodResult = outp.toMessage();
     }
     if (log.isDebugEnabled())
     {
         log.debug(")LongPoll");
     }
 }
예제 #2
0
 public MyAsyncMethod(HServerR pthis, MyAsyncResult asyncResult)
 {
     this.pthis       = pthis;
     this.asyncResult = asyncResult;
 }
예제 #3
0
 public MyAsyncResult(HServerR pthis)
 {
     this.pthis = pthis;
 }