@Override protected void onCompleted(IoEventArgs e){
  int transferred=e.getBytesTransferred();
  if (transferred > 0) {
    if (transferred < e.getCount()) {
      e.setBuffer(e.getOffset() + transferred,e.getCount() - transferred);
      sendAsync();
    }
 else {
      sendPacket();
    }
  }
 else {
    dispose();
  }
}

@ Override protected void onCompleted ( IoEventArgs e ) { int transferred = e . getBytesTransferred ( ) ; if ( transferred > 0 ) { if ( transferred < e . getCount ( ) ) { e . setBuffer ( e . getOffset ( ) + transferred , e . getCount ( ) - transferred ) ; sendAsync ( ) ; } else { sendPacket ( ) ; } } else { dispose ( ) ; } }
on asynchronous send end callback
