Class FocessUDPMultiReceiver

    • Constructor Detail

      • FocessUDPMultiReceiver

        public FocessUDPMultiReceiver​(FocessUDPSocket focessUDPSocket)
    • Method Detail

      • close

        public boolean close()
        Description copied from interface: Receiver
        Close the receiver.
        Specified by:
        close in interface 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
        Specified by:
        sendPacket in interface ServerReceiver
        Parameters:
        client - the client name
        packet - the packet