natNetworkInterface.cc: Removed unneed and yet wrong includes.
2002-09-17 Michael Koch <konqueror@gmx.de> * java/net/natNetworkInterface.cc: Removed unneed and yet wrong includes. From-SVN: r57246
This commit is contained in:
parent
eaff3bf8c3
commit
17656182f7
@ -1,3 +1,8 @@
|
||||
2002-09-17 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/net/natNetworkInterface.cc:
|
||||
Removed unneed and yet wrong includes.
|
||||
|
||||
2002-09-17 Michael Koch <konqueror@gmx.de>
|
||||
|
||||
* java/net/NetworkInterface.java: New file.
|
||||
|
@ -52,8 +52,7 @@ details. */
|
||||
#include <gcj/cni.h>
|
||||
#include <jvm.h>
|
||||
#include <java/net/NetworkInterface.h>
|
||||
#include <java/net/Inet4Address.h>
|
||||
#include <java/net/Inet6Address.h>
|
||||
#include <java/net/InetAddress.h>
|
||||
#include <java/net/SocketException.h>
|
||||
#include <java/util/Vector.h>
|
||||
|
||||
@ -122,8 +121,8 @@ java::net::NetworkInterface::getRealNetworkInterfaces ()
|
||||
jbyteArray baddr = JvNewByteArray (len);
|
||||
memcpy (elements (baddr), &(sa.sin_addr), len);
|
||||
jstring if_name = JvNewStringLatin1 (if_record->ifr_name);
|
||||
Inet4Address* address =
|
||||
new java::net::Inet4Address (baddr, JvNewStringLatin1 (""));
|
||||
InetAddress* address =
|
||||
new java::net::InetAddress (baddr, JvNewStringLatin1 (""));
|
||||
ht->add (new NetworkInterface (if_name, address));
|
||||
if_record++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user