InetSocketAddress.h

Go to the documentation of this file.
00001 #ifndef JAVA_NET_INETSOCKETADDRESS_H
00002 #define JAVA_NET_INETSOCKETADDRESS_H 1
00003 
00004 #ifndef JAVA_NET_SOCKETADDRESS_H
00005 #include <java_net/SocketAddress.h>
00006 #endif /* JAVA_NET_SOCKETADDRESS_H */
00007 #ifndef JAVA_NET_INETADDRESS_H
00008 #include <java_net/InetAddress.h>
00009 #endif /* JAVA_NET_INETADDRESS_H */
00010 #ifndef JAVA_NET_SPEC
00011 #include <java_net/Spec.h>
00012 #endif /* JAVA_NET_SPEC */
00013 
00014 namespace java {
00015   namespace net {
00016 
00035     class JAVA_NET_SPEC InetSocketAddress : virtual public SocketAddress {
00036 
00037     public:
00038 
00051       InetSocketAddress(jint port = 0);
00052 
00068       InetSocketAddress(const Ref<InetAddress>& addr, jint port = 0);
00069 
00087       InetSocketAddress(const String& hostname, jint port = 0);
00088 
00094       jint getPort() const;
00095 
00102       Ref<InetAddress> getAddress() const;
00103 
00109       String getHostName() const;
00110 
00117       jboolean isUnresolved() const;
00118 
00127       virtual String toString() const;
00128 
00146       virtual jboolean equals(const Object& obj) const;
00147 
00153       virtual jint hashCode() const;
00154 
00155     private:
00156 
00157       String hostname;
00158       Ref<InetAddress> addr;
00159       jint port;
00160 
00161       REGISTER_MEMBERS;
00162 
00163     };
00164 
00165   } // namespace net
00166 } // namespace java
00167 
00168 #endif /* JAVA_NET_INETSOCKETADDRESS_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3