简体   繁体   中英

Connecting to IOCP server in Java (Android)

I'd like to make an Online Game with Android.

I'm planning to make Server with IOCP model via C++. This should work fine, the problem is the client.
IOCP client example in C++ uses WSASyncselect or WSAEventSelect .

I couldn't find any Java examples that same work like async socket.

Questions:

  1. Is there anything like WSASyncselect() in Java?
  2. If not that, how could i do it?

The JDK 7 Windows implementation of the Java 7 "NIO.2" classes

For more in-depth information check out the OpenJDK repository folders containing the implementation .java sources along with their corresponding .c native sources and JNI bindings .

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