Package su.lafayette.udptracker.models

Examples of su.lafayette.udptracker.models.Peer


    if (buffer.readableBytes() < 20 + 20 + 8 + 8 + 8 + 4 + 4 + 4 + 2 + 2) {
      ErrorResponse.send(this.getMessageEvent(), this.getTransactionId(), "Too small announce packet!");
    }

    Peer peer = new Peer();
    peer.infoHash = buffer.readBytes(20).array();
    peer.peerId = buffer.readBytes(20).array();
    peer.downloaded = buffer.readLong();
    peer.left = buffer.readLong();
    peer.uploaded = buffer.readLong();
View Full Code Here

TOP

Related Classes of su.lafayette.udptracker.models.Peer

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.