Name: el35337 Date: 05/12/98
In order to combine JAVA with a native library
for messaging I need to be informed, whenever
data is available from a given filedescriptor.
This would imply to wrap a filedesc from C into
java and register a listener to a FileEvent on
this file descriptor. This is only needed in
conjunction with AWT. So I would like to do :
int fd = myNativeFunction(someArgs);
FileDescriptor javaFD = new FileDescriptor(fd);
javaFD.addFileEventListener(new FileEventListener() {
public void fileEventProcessed(int flags){
myNativeProcessData();
}
}
(Review ID: 28982)
======================================================================
- duplicates
-
JDK-4075058 java.io: Add support for non-blocking I/O
-
- Closed
-