lol
This commit is contained in:
commit
613bef2496
108 changed files with 8397 additions and 0 deletions
16
src/zutil/network/nio/worker/EchoWorker.java
Normal file
16
src/zutil/network/nio/worker/EchoWorker.java
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package zutil.network.nio.worker;
|
||||
|
||||
import zutil.MultiPrintStream;
|
||||
|
||||
public class EchoWorker extends ThreadedEventWorker {
|
||||
|
||||
@Override
|
||||
public void messageEvent(WorkerDataEvent dataEvent) {
|
||||
// Return to sender
|
||||
MultiPrintStream.out.println("Recived Msg: "+dataEvent.data);
|
||||
dataEvent.network.send(dataEvent.socket, dataEvent.data);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue