Implement socket async ops on JVM.