com.sun.squawk.platform.windows
Class SystemEventsImpl
java.lang.Object
com.sun.squawk.platform.SystemEvents
com.sun.squawk.platform.windows.SystemEventsImpl
- All Implemented Interfaces:
- Runnable
public class SystemEventsImpl
- extends SystemEvents
- Author:
- dw29446
select
protected Select select
SystemEventsImpl
public SystemEventsImpl()
FD_ZERO
public static void FD_ZERO(Pointer fd_set)
- initializes a descriptor set fdset to the null set
- Parameters:
fd_set
-
FD_COPY
public static void FD_COPY(Pointer fdset_orig,
Pointer fdset_copy)
- replaces an already allocated fdset_copy file descriptor set with a copy of fdset_orig.
- Parameters:
fdset_orig
- fdset_copy
-
FD_ALLOCATE
public static Pointer FD_ALLOCATE()
- Allocate a new fd_struct in c memory.
- Returns:
- pointer to new memory
waitForEvents
public void waitForEvents(long timeout)
- Poll the OS to see if there have been any events on the requested fds.
Try not to allocate if there are no events...
- Specified by:
waitForEvents
in class SystemEvents
- Parameters:
timeout
-
waitForReadEvent
public void waitForReadEvent(int fd)
- Specified by:
waitForReadEvent
in class SystemEvents
waitForWriteEvent
public void waitForWriteEvent(int fd)
- Specified by:
waitForWriteEvent
in class SystemEvents
"For updated information see the Java FRC site"