socket :: NativeSocketTypes :: sock_dgram
DGRAM socket, used for packet-oriented communicationsocket :: NativeSocketTypes :: sock_raw
RAW socket, access raw data, without it being handled by the IP stacksocket :: NativeSocketTypes :: sock_seqpacket
SEQPACKET, packet-oriented communication with guarantees in packet ordersocket :: NativeSocketTypes :: sock_stream
STREAM socket, used for sequential writes/readssocket $ NativeSocketTypes :: 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 :: NativeSocketTypes :: sock_dgram
DGRAM socket, used for packet-oriented communicationsocket :: NativeSocketTypes :: sock_raw
RAW socket, access raw data, without it being handled by the IP stacksocket :: NativeSocketTypes :: sock_seqpacket
SEQPACKET, packet-oriented communication with guarantees in packet ordersocket :: NativeSocketTypes :: sock_stream
STREAM socket, used for sequential writes/reads
# Socket types
extern class NativeSocketTypes `{ int `}
# STREAM socket, used for sequential writes/reads
new sock_stream `{ return SOCK_STREAM; `}
# DGRAM socket, used for packet-oriented communication
new sock_dgram `{ return SOCK_DGRAM; `}
# RAW socket, access raw data, without it being handled by the IP stack
new sock_raw `{ return SOCK_RAW; `}
# SEQPACKET, packet-oriented communication with guarantees in packet order
new sock_seqpacket `{ return SOCK_SEQPACKET; `}
end
lib/socket/socket_c.nit:414,1--424,3