Class PacketPing
java.lang.Object
net.ME1312.SubData.Server.Protocol.Internal.PacketPing
- All Implemented Interfaces:
PacketIn,PacketOut,PacketStreamIn,PacketStreamOut
Ping Packet
-
Constructor Summary
ConstructorsConstructorDescriptionNew PacketPing (In)PacketPing(Consumer<PingResponse>... callback) New PacketPing (Out) -
Method Summary
Modifier and TypeMethodDescriptionvoidreceive(SubDataClient client, InputStream in) Receives the incoming Packetvoidsend(SubDataClient client, OutputStream out) Sends data within the outgoing PacketMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:PacketStreamOutSends data within the outgoing Packet- Specified by:
sendin interfacePacketStreamOut- Parameters:
client- Client sendingout- Data Stream- Throws:
Throwable
-
receive
Description copied from interface:PacketStreamInReceives the incoming Packet- Specified by:
receivein interfacePacketStreamIn- Parameters:
client- Client who sentin- Data Stream- Throws:
Throwable
-