Fields Summary |
---|
public static final int | APR_POLLINPoll options |
public static final int | APR_POLLPRICan read without blocking |
public static final int | APR_POLLOUTPriority data available |
public static final int | APR_POLLERRCan write without blocking |
public static final int | APR_POLLHUPPending error |
public static final int | APR_POLLNVALHangup occurred |
public static final int | APR_POLLSET_THREADSAFEAdding or Removing a Descriptor is thread safe |
public static final int | APR_NO_DESCUsed in apr_pollfd_t to determine what the apr_descriptor is
apr_datatype_e enum |
public static final int | APR_POLL_SOCKETnothing here |
public static final int | APR_POLL_FILEdescriptor refers to a socket |
public static final int | APR_POLL_LASTDESCdescriptor refers to a file |
Methods Summary |
---|
public static native int | add(long pollset, long sock, int reqevents)Add a socket or to a pollset
If you set client_data in the descriptor, that value
will be returned in the client_data field whenever this
descriptor is signalled in apr_pollset_poll().
|
public static native long | create(int size, long p, int flags, long ttl)Setup a pollset object.
If flags equals APR_POLLSET_THREADSAFE, then a pollset is
created on which it is safe to make concurrent calls to
apr_pollset_add(), apr_pollset_remove() and apr_pollset_poll() from
separate threads. This feature is only supported on some
platforms; the apr_pollset_create() call will fail with
APR_ENOTIMPL on platforms where it is not supported.
|
public static native int | destroy(long pollset)Destroy a pollset object
|
public static native long | getTtl(long pollset)Get the socket time to live.
|
public static native int | maintain(long pollset, long[] descriptors, boolean remove)Maintain on the descriptor(s) in a pollset
|
public static native int | poll(long pollset, long timeout, long[] descriptors, boolean remove)Block for activity on the descriptor(s) in a pollset
|
public static native int | pollset(long pollset, long[] descriptors)Return all descriptor(s) in a pollset
|
public static native int | remove(long pollset, long sock)Remove a descriptor from a pollset
|
public static native void | setTtl(long pollset, long ttl)Set the socket time to live.
|