Package com.aelitis.azureus.core.peermanager.messaging.bittorrent

Examples of com.aelitis.azureus.core.peermanager.messaging.bittorrent.BTBitfield


        }
               
        DirectByteBuffer buffer = new DirectByteBuffer( ByteBuffer.wrap( bits ));

        connection.getOutgoingMessageQueue().addMessage(
          new BTBitfield( buffer, BTMessageFactory.MESSAGE_VERSION_INITIAL ),
          false );
      }
    }
View Full Code Here


     
      byte[]  bits = new byte[(control.getPieces().length +7) /8];
     
      DirectByteBuffer buffer = new DirectByteBuffer( ByteBuffer.wrap( bits ));
     
      decoder.addMessage( new BTBitfield( buffer, (byte)1 ));
    }
   
    synchronized( outstanding_requests ){

      http_requests.add( request );
View Full Code Here

                   
                  }else if ( message_id.equals( BTMessage.ID_BT_BITFIELD )){
                 
                    bitfield_received = true;
                   
                    BTBitfield bitfield = (BTBitfield)message;
           
                    ByteBuffer bb = bitfield.getBitfield().getBuffer((byte)0);
                   
                    byte[]  contents = new byte[bb.remaining()];
                   
                    bb.get( contents );
                                       
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.peermanager.messaging.bittorrent.BTBitfield

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.