Class PacketPing
java.lang.Object
net.ME1312.SubData.Server.Protocol.Internal.PacketPing
- All Implemented Interfaces:
PacketIn
,PacketOut
,PacketStreamIn
,PacketStreamOut
Ping Packet
-
Constructor Summary
ConstructorDescriptionNew PacketPing (In)PacketPing
(Consumer<PingResponse>... callback) New PacketPing (Out) -
Method Summary
Modifier and TypeMethodDescriptionvoid
receive
(SubDataClient client, InputStream in) Receives the incoming Packetvoid
send
(SubDataClient client, OutputStream out) Sends data within the outgoing PacketMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.ME1312.SubData.Server.Protocol.PacketStreamIn
receive
-
Constructor Details
-
PacketPing
public PacketPing()New PacketPing (In) -
PacketPing
New PacketPing (Out)- Parameters:
callback
- Callbacks
-
-
Method Details
-
send
Description copied from interface:PacketStreamOut
Sends data within the outgoing Packet- Specified by:
send
in interfacePacketStreamOut
- Parameters:
client
- Client sendingout
- Data Stream- Throws:
Throwable
-
receive
Description copied from interface:PacketStreamIn
Receives the incoming Packet- Specified by:
receive
in interfacePacketStreamIn
- Parameters:
client
- Client who sentin
- Data Stream- Throws:
Throwable
-