KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > transport > LocalAddress


1
2 package transport;
3 import java.net.InetAddress JavaDoc;
4
5 /**
6  *
7  */

8 public class LocalAddress
9 {
10     private InetAddress JavaDoc localIP;
11     private int localPort;
12     
13     public LocalAddress(InetAddress JavaDoc ip, int p)
14     {
15         super();
16         localIP = ip;
17         localPort = p;
18     }
19
20     /**
21      * @return Returns the localIP.
22      */

23     public InetAddress JavaDoc getLocalIP()
24     {
25         return localIP;
26     }
27
28     /**
29      * @return Returns the localPort.
30      */

31     public int getLocalPort()
32     {
33         return localPort;
34     }
35
36 }
37
Popular Tags