2011-02-15 19:37:35 +00:00
|
|
|
package zutil.net.threaded;
|
2010-01-31 18:10:00 +00:00
|
|
|
|
|
|
|
|
import java.net.DatagramPacket;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This interface is for processing received packets
|
2011-06-24 23:20:59 +00:00
|
|
|
* from the ThreadedUDPNetworkServer
|
2010-01-31 18:10:00 +00:00
|
|
|
*
|
|
|
|
|
* @author Ziver
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public interface ThreadedUDPNetworkThread extends Runnable{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Packet will be processed in this method
|
|
|
|
|
*
|
2011-06-24 23:20:59 +00:00
|
|
|
* @param packet is the received packet
|
|
|
|
|
* @param network is the network class that received the packet
|
2010-01-31 18:10:00 +00:00
|
|
|
*/
|
|
|
|
|
public void receivedPacket(DatagramPacket packet, ThreadedUDPNetwork network);
|
|
|
|
|
}
|