Package com.turn.ttorrent.bcodec

Examples of com.turn.ttorrent.bcodec.InvalidBEncodingException


   * peers' addresses. Peer IDs are lost, but they are not crucial.
   */
  private static List<Peer> toPeerList(byte[] data)
    throws InvalidBEncodingException, UnknownHostException {
    if (data.length % 6 != 0) {
      throw new InvalidBEncodingException("Invalid peers " +
        "binary information string!");
    }

    List<Peer> result = new LinkedList<Peer>();
    ByteBuffer peers = ByteBuffer.wrap(data);
View Full Code Here

TOP

Related Classes of com.turn.ttorrent.bcodec.InvalidBEncodingException

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.