socket :: NativeSocketPollFD :: new
socket :: NativeSocketPollFD :: revents
List of events received by the last poll functionsocket $ NativeSocketPollFD :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Pointer :: native_equals
socket :: NativeSocketPollFD :: new
core :: Object :: output_class_name
Display class name on stdout (debug only).core :: Pointer :: premultiply_alpha
Multiply RGB values by their alpha valuesocket :: NativeSocketPollFD :: revents
List of events received by the last poll function
# Data structure used by the poll function
private extern class NativeSocketPollFD `{ struct pollfd * `}
# File descriptor
fun fd: Int `{ return self->fd; `}
# List of events to be watched
fun events: Int `{ return self->events; `}
# List of events received by the last poll function
fun revents: Int `{ return self->revents; `}
new (pid: Int, events: NativeSocketPollValues) `{
struct pollfd *poll = malloc(sizeof(struct pollfd));
poll->fd = pid;
poll->events = events;
return poll;
`}
end
lib/socket/socket_c.nit:88,1--106,3