public final class StructPollfd extends Object
Os.poll(android.system.StructPollfd[], int).
Corresponds to C's struct pollfd from <poll.h>.| Modifier and Type | Field and Description |
|---|---|
short |
events
The events we're interested in.
|
FileDescriptor |
fd
The file descriptor to poll.
|
short |
revents
The events that actually happened.
|
Object |
userData
A non-standard extension that lets callers conveniently map back to the object
their fd belongs to.
|
| Constructor and Description |
|---|
StructPollfd() |
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
public FileDescriptor fd
public short events
public short revents
public Object userData
public String toString()
ObjectgetClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString method
if you intend implementing your own toString method.