Package | Description |
---|---|
clientP2P | |
protocolP2P | |
serverP2P | |
tools | |
tracker |
Modifier and Type | Method and Description |
---|---|
<T extends ProtocolP2PPacket<?>> |
ClientDownloadPart.downloadPart(T d)
Download file part associated to the request send (d).
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Payload> |
ClientManagementUDP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
ClientManagementTCP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
ClientDownloadUDP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
ClientDownloadTCP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
ClientDownloadPartUDP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
ClientDownloadPartTCP.createProtocolP2PPacket(T payload)
Create packets
|
protected ProtocolP2PPacket<?> |
ClientDownloadPart.reqPart(java.lang.Long offset)
Send a request for a specific offset.
|
Modifier and Type | Class and Description |
---|---|
class |
ProtocolP2PPacketTCP<T extends Payload>
Representation of packet.
|
class |
ProtocolP2PPacketUDP<T extends Payload>
Representation of packet.
|
Modifier and Type | Method and Description |
---|---|
<U extends ProtocolP2PPacket<?>> |
ProtocolP2PPacketUDP.sendResponse(U response)
Send a Response to a Request (typically used from server).
|
<U extends ProtocolP2PPacket<?>> |
ProtocolP2PPacketTCP.sendResponse(U response)
Send a Response to a Request (typically used from server).
|
abstract <U extends ProtocolP2PPacket<?>> |
ProtocolP2PPacket.sendResponse(U response)
Send a response
|
Modifier and Type | Method and Description |
---|---|
ProtocolP2PPacket<?> |
ProtocolP2PPacketUDP.receiveResponse()
Receive response (typically used by client).
|
ProtocolP2PPacket<?> |
ProtocolP2PPacketTCP.receiveResponse()
Receive response (typically used by client).
|
abstract ProtocolP2PPacket<?> |
ProtocolP2PPacket.receiveResponse()
Receive a response
|
Modifier and Type | Method and Description |
---|---|
protected <T extends ProtocolP2PPacket<?>> |
ServerManagement.handleRequest(T pd)
Handle request.
|
protected <T extends ProtocolP2PPacket<?>> |
ServerManagement.sendHashResponse(T pd)
Send hash response to hash request
|
protected <T extends ProtocolP2PPacket<?>> |
ServerManagement.sendListResponse(T pd)
Send response to list request
|
protected <T extends ProtocolP2PPacket<?>> |
ServerManagement.sendLoadResponse(T pd)
Send response to load request
|
protected <T extends ProtocolP2PPacket<?>> |
ServerManagement.sendSizeResponse(T pd)
Send response to size request
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Payload> |
ServerManagementUDP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
ServerManagementTCP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
RatioWatcherUDP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
RatioWatcherTCP.createProtocolP2PPacket(T payload)
Create packets
|
protected abstract <T extends Payload> |
RatioWatcher.createProtocolP2PPacket(T payload)
Create packets
|
Modifier and Type | Method and Description |
---|---|
protected <T extends ProtocolP2PPacket<?>> |
ServeErrors.sendEmptyDirectory(T pd)
Send an empty directory message.
|
protected <T extends ProtocolP2PPacket<?>> |
ServeErrors.sendEmptyFile(T pd)
Send an empty file message.
|
protected <T extends ProtocolP2PPacket<?>> |
ServeErrors.sendInternalError(T pd)
Send an internal error message.
|
protected <T extends ProtocolP2PPacket<?>> |
ServeErrors.sendNotATracker(T pd)
Send a NotATracker error message.
|
protected <T extends ProtocolP2PPacket<?>> |
ServeErrors.sendNotFound(T pd)
Send a not found message.
|
protected <T extends ProtocolP2PPacket<?>> |
ServeErrors.sendUnknownHost(T pd)
Send an unknown host message.
|
Modifier and Type | Method and Description |
---|---|
protected abstract <T extends Payload> |
ServeErrors.createProtocolP2PPacket(T payload)
Create packets
|
Modifier and Type | Method and Description |
---|---|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleDiscover(T pd)
Handle Discover request
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleListRequest(T pd)
Handle List request
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleListResponse(T pd,
HostItem host)
Handle List Responses
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleRatio(T pd)
Handle Ratio request
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleRegister(T pd)
Handle Registering
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleRequest(T pd)
Handle requests
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleSizeRequest(T pd)
Handle Size request
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleUnregister(T pd)
Handle Unregistering
|
protected <T extends ProtocolP2PPacket<?>> |
TrackerManagement.handleUpdateRatio(T pd)
Handle Update Ratio
|
Modifier and Type | Method and Description |
---|---|
protected <T extends Payload> |
TrackerManagementUDP.createProtocolP2PPacket(T payload)
Create packets
|
protected <T extends Payload> |
TrackerManagementTCP.createProtocolP2PPacket(T payload)
Create packets
|