Abstracted the HTTP server with TCP Network classes and added an SSDP service
This commit is contained in:
parent
b3ad292ff9
commit
45f514fc27
25 changed files with 1645 additions and 688 deletions
21
src/zutil/network/threaded/ThreadedUDPNetworkThread.java
Normal file
21
src/zutil/network/threaded/ThreadedUDPNetworkThread.java
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package zutil.network.threaded;
|
||||
|
||||
import java.net.DatagramPacket;
|
||||
|
||||
/**
|
||||
* This interface is for processing received packets
|
||||
* from the TNetworkUDPServer
|
||||
*
|
||||
* @author Ziver
|
||||
*
|
||||
*/
|
||||
public interface ThreadedUDPNetworkThread extends Runnable{
|
||||
|
||||
/**
|
||||
* Packet will be processed in this method
|
||||
*
|
||||
* @param packet is the received packet
|
||||
* @param network is the network class that received the packet
|
||||
*/
|
||||
public void receivedPacket(DatagramPacket packet, ThreadedUDPNetwork network);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue