Class FocessReceiver

    • Constructor Detail

      • FocessReceiver

        public FocessReceiver​(FocessSocket focessSocket)
    • Method Detail

      • 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
      • close

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