简体   繁体   中英

Java Structure to Map C sockaddr_in Structure through JNI

Is there a Java class that maps (via JNI) to the C sockaddr_in structure? I have a C method that returns a sockaddr_in structure and I'm unsure what Java Object can be used to map to it.

InetAddress或SocketAddress或它们的派生类之一,但我想确切地知道“句柄”的含义。

I think you want an java.net.InetSocketAddress .

http://download.oracle.com/javase/6/docs/api/java/net/InetSocketAddress.html

HTH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM