Package top.focess.qq.api.net
Interface Receiver
-
- All Known Subinterfaces:
ClientReceiver,ServerMultiReceiver,ServerReceiver
- All Known Implementing Classes:
AClientReceiver,AServerReceiver,FocessClientReceiver,FocessReceiver,FocessSidedClientReceiver,FocessSidedReceiver,FocessUDPMultiReceiver,FocessUDPReceiver
public interface ReceiverThe class is used to handle packet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanclose()Close the receiver.voidunregister(Plugin plugin)Unregister the packet handlers of the pluginbooleanunregisterAll()Unregister all the packet handlers
-
-
-
Method Detail
-
close
boolean close()
Close the receiver.- Returns:
- true if there is some resources not closed before, false otherwise
-
unregister
void unregister(Plugin plugin)
Unregister the packet handlers of the plugin- Parameters:
plugin- the plugin
-
unregisterAll
boolean unregisterAll()
Unregister all the packet handlers- Returns:
- true if there are some packet-handlers not belonging to MainPlugin not been unregistered, false otherwise
-
-