~motu-torrent/azureus/upstream-stable

« back to all changes in this revision

Viewing changes to com/aelitis/azureus/core/dht/transport/udp/impl/DHTUDPPacketRequestPing.java

  • Committer: John Dong
  • Date: 2007-10-22 04:54:13 UTC
  • Revision ID: john.dong@gmail.com-20071022045413-3ovb11u82rrcokxx
Commit 3.0.3.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Created on 21-Jan-2005
3
 
 * Created by Paul Gardner
4
 
 * Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU General Public License
8
 
 * as published by the Free Software Foundation; either version 2
9
 
 * of the License, or (at your option) any later version.
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 * You should have received a copy of the GNU General Public License
15
 
 * along with this program; if not, write to the Free Software
16
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17
 
 * 
18
 
 * AELITIS, SAS au capital de 46,603.30 euros
19
 
 * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
20
 
 *
21
 
 */
22
 
 
23
 
package com.aelitis.azureus.core.dht.transport.udp.impl;
24
 
 
25
 
import java.io.DataInputStream;
26
 
import java.io.DataOutputStream;
27
 
import java.io.IOException;
28
 
 
29
 
import com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketNetworkHandler;
30
 
 
31
 
 
32
 
/**
33
 
 * @author parg
34
 
 *
35
 
 */
36
 
 
37
 
public class 
38
 
DHTUDPPacketRequestPing 
39
 
        extends DHTUDPPacketRequest
40
 
{
41
 
        public
42
 
        DHTUDPPacketRequestPing(
43
 
                DHTTransportUDPImpl                             _transport,
44
 
                long                                                    _connection_id,
45
 
                DHTTransportUDPContactImpl              _local_contact,
46
 
                DHTTransportUDPContactImpl              _remote_contact )
47
 
        {
48
 
                super( _transport, DHTUDPPacketHelper.ACT_REQUEST_PING, _connection_id, _local_contact, _remote_contact );
49
 
        }
50
 
        
51
 
        protected
52
 
        DHTUDPPacketRequestPing(
53
 
                DHTUDPPacketNetworkHandler              network_handler,
54
 
                DataInputStream                                 is,
55
 
                long                                                    con_id,
56
 
                int                                                             trans_id )
57
 
        
58
 
                throws IOException
59
 
        {
60
 
                super( network_handler, is,  DHTUDPPacketHelper.ACT_REQUEST_PING, con_id, trans_id );
61
 
                
62
 
                super.postDeserialise(is);
63
 
        }
64
 
        
65
 
        public void
66
 
        serialise(
67
 
                DataOutputStream        os )
68
 
        
69
 
                throws IOException
70
 
        {
71
 
                super.serialise(os);
72
 
                
73
 
                super.postSerialise( os );
74
 
        }
75
 
        
76
 
        public String
77
 
        getString()
78
 
        {
79
 
                return( super.getString());
80
 
        }
 
1
/*
 
2
 * Created on 21-Jan-2005
 
3
 * Created by Paul Gardner
 
4
 * Copyright (C) 2004, 2005, 2006 Aelitis, All Rights Reserved.
 
5
 *
 
6
 * This program is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU General Public License
 
8
 * as published by the Free Software Foundation; either version 2
 
9
 * of the License, or (at your option) any later version.
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
17
 * 
 
18
 * AELITIS, SAS au capital de 46,603.30 euros
 
19
 * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
 
20
 *
 
21
 */
 
22
 
 
23
package com.aelitis.azureus.core.dht.transport.udp.impl;
 
24
 
 
25
import java.io.DataInputStream;
 
26
import java.io.DataOutputStream;
 
27
import java.io.IOException;
 
28
 
 
29
import com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketNetworkHandler;
 
30
 
 
31
 
 
32
/**
 
33
 * @author parg
 
34
 *
 
35
 */
 
36
 
 
37
public class 
 
38
DHTUDPPacketRequestPing 
 
39
        extends DHTUDPPacketRequest
 
40
{
 
41
        public
 
42
        DHTUDPPacketRequestPing(
 
43
                DHTTransportUDPImpl                             _transport,
 
44
                long                                                    _connection_id,
 
45
                DHTTransportUDPContactImpl              _local_contact,
 
46
                DHTTransportUDPContactImpl              _remote_contact )
 
47
        {
 
48
                super( _transport, DHTUDPPacketHelper.ACT_REQUEST_PING, _connection_id, _local_contact, _remote_contact );
 
49
        }
 
50
        
 
51
        protected
 
52
        DHTUDPPacketRequestPing(
 
53
                DHTUDPPacketNetworkHandler              network_handler,
 
54
                DataInputStream                                 is,
 
55
                long                                                    con_id,
 
56
                int                                                             trans_id )
 
57
        
 
58
                throws IOException
 
59
        {
 
60
                super( network_handler, is,  DHTUDPPacketHelper.ACT_REQUEST_PING, con_id, trans_id );
 
61
                
 
62
                super.postDeserialise(is);
 
63
        }
 
64
        
 
65
        public void
 
66
        serialise(
 
67
                DataOutputStream        os )
 
68
        
 
69
                throws IOException
 
70
        {
 
71
                super.serialise(os);
 
72
                
 
73
                super.postSerialise( os );
 
74
        }
 
75
        
 
76
        public String
 
77
        getString()
 
78
        {
 
79
                return( super.getString());
 
80
        }
81
81
}
 
 
b'\\ No newline at end of file'