Class FocessUDPReceiver

    • Constructor Detail

      • FocessUDPReceiver

        public FocessUDPReceiver​(FocessUDPSocket focessUDPSocket)
    • Method Detail

      • close

        public boolean close()
        Description copied from interface: Receiver
        Close the receiver.
        Returns:
        true if there is some resources not closed before, false otherwise
      • onHeart

        public void onHeart​(HeartPacket packet)
      • sendPacket

        public void sendPacket​(String client,
                               Packet packet)
        Description copied from interface: ServerReceiver
        Send packet to the special client
        Parameters:
        client - the client name
        packet - the packet