1 package net.sourceforge.simplegamenet.framework.transport;
2
3 public class ClientPacketTask extends PacketTask {
4
5 private ClientModem clientModem;
6
7 public ClientPacketTask(ClientModem clientModem, Packet packet) {
8 super(packet);
9 this.clientModem = clientModem;
10 }
11
12 /***
13 * When an object implementing interface <code>Runnable</code> is used to create a thread,
14 * starting the thread causes the object's <code>run</code> method to be called in that
15 * separately executing thread.
16 * <p/>
17 * The general contract of the method <code>run</code> is that it may take any action
18 * whatsoever.
19 *
20 * @see java.lang.Thread#run()
21 */
22 public void run() {
23 clientModem.processPacket(packet);
24 }
25
26 }