NetworkInterface.h

Go to the documentation of this file.
00001 #ifndef JAVA_NET_NETWORKINTERFACE_H
00002 #define JAVA_NET_NETWORKINTERFACE_H 1
00003 
00004 #ifndef JAVA_NET_INETADDRESS_H
00005 #include <java_net/InetAddress.h>
00006 #endif /* JAVA_NET_INETADDRESS_H */
00007 #ifndef JAVA_UTIL_LIST_H
00008 #include <java_util/List.h>
00009 #endif /* JAVA_UTIL_LIST_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 
00017     using namespace java::util;
00018 
00029     class JAVA_NET_SPEC NetworkInterface : virtual public Object {
00030 
00031     public:
00032 
00033       NetworkInterface();
00034 
00040       virtual String getName() const;
00041 
00053       virtual Ref<List> getInetAddresses() const;
00054 
00063       virtual String getDisplayName() const;
00064 
00081       static Ref<NetworkInterface> getByName(const String& name);
00082 
00105       static Ref<NetworkInterface> getByInetAddress(const InetAddress& addr);
00106 
00117       static Ref<List> getNetworkInterfaces();
00118 
00133       virtual jboolean equals(const Object& obj) const;
00134 
00135       virtual jint hashCode() const;
00136 
00137       virtual String toString() const;
00138 
00139     protected:
00140 
00146       NetworkInterface(const ObjectRef& impl);
00147 
00148     private:
00149 
00150       ObjectRef impl;
00151       REGISTER_MEMBERS;
00152 
00153     };
00154 
00155   } // namespace net
00156 } // namespace java
00157 
00158 #endif /* JAVA_NET_NETWORKINTERFACE_H */

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