socket :: NativeSocketOptNames :: broadcast
Authorizes the broadcasting of messagessocket :: NativeSocketOptNames :: debug
Enables debugging informationsocket :: NativeSocketOptNames :: keepalive
Authorizes the use of keep-alive packets in a connectionsocket :: NativeSocketOptNames :: reuseaddr
Authorizes the reuse of the local addresssocket :: NativeSocketOptNames :: tcp_nodelay
Disable the Nagle algorithm and send data as soon as possible, in smaller packetssocket $ NativeSocketOptNames :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?socket :: NativeSocketOptNames :: broadcast
Authorizes the broadcasting of messagescore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
socket :: NativeSocketOptNames :: debug
Enables debugging informationcore :: 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.
socket :: NativeSocketOptNames :: keepalive
Authorizes the use of keep-alive packets in a connectioncore :: Object :: output_class_name
Display class name on stdout (debug only).socket :: NativeSocketOptNames :: reuseaddr
Authorizes the reuse of the local addresssocket :: NativeSocketOptNames :: tcp_nodelay
Disable the Nagle algorithm and send data as soon as possible, in smaller packets
# Options for socket, use with setsockopt
extern class NativeSocketOptNames `{ int `}
# Enables debugging information
new debug `{ return SO_DEBUG; `}
# Authorizes the broadcasting of messages
new broadcast `{ return SO_BROADCAST; `}
# Authorizes the reuse of the local address
new reuseaddr `{ return SO_REUSEADDR; `}
# Authorizes the use of keep-alive packets in a connection
new keepalive `{ return SO_KEEPALIVE; `}
# Disable the Nagle algorithm and send data as soon as possible, in smaller packets
new tcp_nodelay `{ return TCP_NODELAY; `}
end
lib/socket/socket_c.nit:511,1--528,3