Package | Description |
---|---|
protocolP2P |
Modifier and Type | Method and Description |
---|---|
ProtocolP2PPacket<?> |
ProtocolP2PPacketTCP.receiveResponse()
Receive response (typically used by client).
|
abstract ProtocolP2PPacket<?> |
ProtocolP2PPacket.receiveResponse()
Receive a response
|
protected void |
ProtocolP2PPacketTCP.send(java.net.Socket socket)
Send a Packet.
|
void |
ProtocolP2PPacketTCP.sendRequest(java.lang.Object socket)
Send a Request throught socket.
|
abstract void |
ProtocolP2PPacket.sendRequest(java.lang.Object socket)
Send a request
|
<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
|
Constructor and Description |
---|
ProtocolP2PPacket(java.lang.Object socket)
Receive a request, subclasses must overwrite this constructor.
|
ProtocolP2PPacketTCP(java.lang.Object socket)
Receive Request (typically used from server).
|
ProtocolP2PPacketUDP(java.lang.Object socket)
Receive Request (typically used from server).
|