Rev 15 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 15 | Rev 73 | ||
|---|---|---|---|
| 1 | /* |
1 | /* |
| 2 | * MbPacketReceiver.java |
2 | * MbPacketReceiver.java |
| 3 | * |
3 | * |
| 4 | * Created on den 24 augusti 2003, 23:59 |
4 | * Created on den 24 augusti 2003, 23:59 |
| 5 | */ |
5 | */ |
| 6 | package Macbeth.System; |
6 | package Macbeth.System; |
| 7 | 7 | ||
| 8 | /** |
8 | /** |
| 9 | * Implement this interface if your class contains |
9 | * Implement this interface if your class contains |
| 10 | * functionality for receiving Macbeth packets. Note |
10 | * functionality for receiving Macbeth packets. Note |
| 11 | * that receiving a packet is not the same as handling |
11 | * that receiving a packet is not the same as handling |
| 12 | * packets. Handling packets refers to the process |
12 | * packets. Handling packets refers to the process |
| 13 | * or parsing them and reacting to the data found |
13 | * or parsing them and reacting to the data found |
| 14 | * in their contents, while receiving simply refers |
14 | * in their contents, while receiving simply refers |
| 15 | * to the process of taking care of an incoming packet |
15 | * to the process of taking care of an incoming packet |
| 16 | * (and putting it onto a packet queue or invoking a |
16 | * (and putting it onto a packet queue or invoking a |
| 17 | * handler). |
17 | * handler). |
| 18 | * @author Jimmy |
18 | * @author Jimmy |
| 19 | */ |
19 | */ |
| 20 | public interface MbPacketReceiver { |
20 | public interface MbPacketReceiver { |
| 21 | /** |
21 | /** |
| 22 | * This is called when someone sends you a packet. |
22 | * This is called when someone sends you a packet. |
| 23 | */ |
23 | */ |
| 24 | public void packetReceived(MbPacket p); |
24 | public void packetReceived(MbPacket p); |
| 25 | } |
25 | } |