| Package | Description |
|---|---|
| org.johnnei.javatorrent.internal.utp | |
| org.johnnei.javatorrent.internal.utp.protocol.packet | |
| org.johnnei.javatorrent.internal.utp.stream |
| Modifier and Type | Method and Description |
|---|---|
UtpSocket |
UtpSocketRegistry.allocateSocket(Function<Short,UtpSocket> socketSupplier)
Takes a function which creates, and stores, a socket based on the allocated connection id.
|
static UtpSocket |
UtpSocket.createInitiatingSocket(DatagramChannel channel,
short receiveConnectionId)
Creates a new
UtpSocket and configures it to be the initiating side. |
static UtpSocket |
UtpSocket.createRemoteConnecting(DatagramChannel channel,
UtpPacket synPacket) |
UtpSocket |
UtpSocketRegistry.createSocket(SocketAddress socketAddress,
UtpPacket synPacket) |
UtpSocket |
UtpSocketRegistry.getSocket(short connectionId) |
| Modifier and Type | Method and Description |
|---|---|
Collection<UtpSocket> |
UtpSocketRegistry.getAllSockets() |
| Modifier and Type | Method and Description |
|---|---|
void |
UtpPeerConnectionAcceptor.onReceivedConnection(UtpSocket socket)
Adds a newly found uTP connection to the queue to be connected.
|
| Modifier and Type | Method and Description |
|---|---|
UtpSocket |
UtpSocketRegistry.allocateSocket(Function<Short,UtpSocket> socketSupplier)
Takes a function which creates, and stores, a socket based on the allocated connection id.
|
| Constructor and Description |
|---|
PacketAckHandler(UtpSocket socket)
Created an Ack Handler with an uninitialized initial packet.
|
PacketAckHandler(UtpSocket socket,
short acknowledgeNumber)
Created an Ack Handler with an initialized initial packet.
|
PacketLossHandler(UtpSocket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
SynPayload.onReceivedPayload(UtpHeader header,
UtpSocket socket) |
void |
FinPayload.onReceivedPayload(UtpHeader header,
UtpSocket socket) |
void |
Payload.onReceivedPayload(UtpHeader header,
UtpSocket socket)
Updates the socket state based on the received payload (this instance).
|
void |
ResetPayload.onReceivedPayload(UtpHeader header,
UtpSocket socket) |
void |
DataPayload.onReceivedPayload(UtpHeader header,
UtpSocket socket) |
void |
StatePayload.onReceivedPayload(UtpHeader header,
UtpSocket socket) |
| Constructor and Description |
|---|
UtpOutputStream(UtpSocket socket) |
Copyright © 2017. All rights reserved.