1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.xnap.plugin.opennap.net.msg.server;
21
22 import org.xnap.net.NetHelper;
23 import org.xnap.util.QuotedStringTokenizer;
24
25 public class AltDownloadAckMessage extends ServerMessage {
26
27
28
29 public static final int TYPE = 501;
30
31
32
33 public String nick;
34 public String ip;
35 public int port;
36 public String filename;
37 public String md5;
38 public String linkSpeed;
39
40
41
42 public AltDownloadAckMessage(String data) throws InvalidMessageException
43 {
44 super(TYPE, data, 6);
45 }
46
47
48
49 protected void parse(QuotedStringTokenizer t)
50 {
51 nick = t.nextToken();
52 ip = NetHelper.toIP(t.nextToken());
53 port = Integer.parseInt(t.nextToken());
54 filename = t.nextToken();
55 md5 = t.nextToken();
56 linkSpeed = t.nextToken();
57 }
58
59 public void received()
60 {
61
62 }
63
64 }