socket :: NativeSocketPollValues :: pollerr
An error has occurred on the device or stream.socket :: NativeSocketPollValues :: pollhup
The device has been disconnected.socket :: NativeSocketPollValues :: pollin
Data other than high-priority data may be read without blocking.socket :: NativeSocketPollValues :: pollnval
The specified fd value is invalid.socket :: NativeSocketPollValues :: pollout
Normal data may be written without blocking.socket :: NativeSocketPollValues :: pollpri
High-priority data may be read without blocking.socket :: NativeSocketPollValues :: pollrdband
Priority data may be read without blocking.socket :: NativeSocketPollValues :: pollrdnorm
Normal data may be read without blocking.socket :: NativeSocketPollValues :: pollwrband
Priority data may be written.socket :: NativeSocketPollValues :: pollwrnorm
Equivalent to POLLOUTsocket $ NativeSocketPollValues :: 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 :: Pointer :: defaultinit
core :: Object :: 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 :: output_class_name
Display class name on stdout (debug only).socket :: NativeSocketPollValues :: pollerr
An error has occurred on the device or stream.socket :: NativeSocketPollValues :: pollhup
The device has been disconnected.socket :: NativeSocketPollValues :: pollin
Data other than high-priority data may be read without blocking.socket :: NativeSocketPollValues :: pollnval
The specified fd value is invalid.socket :: NativeSocketPollValues :: pollout
Normal data may be written without blocking.socket :: NativeSocketPollValues :: pollpri
High-priority data may be read without blocking.socket :: NativeSocketPollValues :: pollrdband
Priority data may be read without blocking.socket :: NativeSocketPollValues :: pollrdnorm
Normal data may be read without blocking.socket :: NativeSocketPollValues :: pollwrband
Priority data may be written.socket :: NativeSocketPollValues :: pollwrnorm
Equivalent to POLLOUT
# Used for the poll function of a socket, mix several Poll values to check for events on more than one type of event
extern class NativeSocketPollValues `{ int `}
# Data other than high-priority data may be read without blocking.
new pollin `{ return POLLIN; `}
# Normal data may be read without blocking.
new pollrdnorm `{ return POLLRDNORM; `}
# Priority data may be read without blocking.
new pollrdband `{ return POLLRDBAND; `}
# High-priority data may be read without blocking.
new pollpri `{ return POLLPRI; `}
# Normal data may be written without blocking.
new pollout `{ return POLLOUT; `}
# Equivalent to POLLOUT
new pollwrnorm `{ return POLLWRNORM; `}
# Priority data may be written.
new pollwrband `{ return POLLWRBAND; `}
# An error has occurred on the device or stream.
#
# This flag is only valid in the revents bitmask; it shall be ignored in the events member.
new pollerr `{ return POLLERR; `}
# The device has been disconnected.
#
# This event and POLLOUT are mutually-exclusive; a stream can never be
# writable if a hangup has occurred. However, this event and POLLIN,
# POLLRDNORM, POLLRDBAND, or POLLPRI are not mutually-exclusive.
#
# This flag is only valid in the revents bitmask; it shall be ignored in the events member.
new pollhup `{ return POLLHUP; `}
# The specified fd value is invalid.
#
# This flag is only valid in the revents member; it shall ignored in the events member.
new pollnval `{ return POLLNVAL; `}
# Combines two NativeSocketPollValues
private fun +(other: NativeSocketPollValues): NativeSocketPollValues `{
return self | other;
`}
end
lib/socket/socket_c.nit:530,1--577,3