This topic lists methods provided by the Tizen Sockets Extension for WebAssembly.
Important Thehttp://tizen.org/privilege/internet privilege is needed when using this extension. More information regarding the "config.xml" file format and how to add privileges there can be found on Tizen Developers
Thehttp://tizen.org/privilege/internet privilege is needed when using this extension.
http://tizen.org/privilege/internet
More information regarding the "config.xml" file format and how to add privileges there can be found on Tizen Developers
When possible, the semantics of these functions conform to the POSIX.1-2017 standard. The most notable differences are:
Lack of signals support in Emscripten and in a web environment.
Tizen Sockets Extension APIs cannot be called from the main thread, which is usually the one running the main function unless -s PROXY_TO_PTHREAD or --proxy-to-worker flags are provided to Emscripten during link time. See Additional flags in the Emscripten documentation.
-s PROXY_TO_PTHREAD
--proxy-to-worker
Socket functions that accept multiple descriptors can accept only one descriptor type at a time. Descriptor types cannot be mixed (meaning that a method can be called with either socket descriptors or file descriptors, but not both). In particular, this applies to poll() and select() methods.
select() method can be slow due to its internal implementation in Emscripten. It is recommended to use poll() method instead.
The following extensions to sockets are provided:
SOCK_NONBLOCK
SOCK_CLOEXEC
accept()
accept4()
flags
bind()
close()
connect()
freeaddrinfo()
getaddrinfo()
gethostbyaddr()
gethostbyname()
getpeername()
getsockname()
getsockopt()
level
optname
SOL_SOCKET
SO_DEBUG
SO_ERROR
SO_BROADCAST
SO_REUSEADDR
SO_KEEPALIVE
SO_OOBINLINE
SO_SNDBUF
SO_RCVBUF
SO_DONTROUTE
SO_RCVLOWAT
SO_SNDLOWAT
SO_RCVTIMEO
SO_SNDTIMEO
SO_LINGER
IPPROTO_TCP
TCP_NODELAY
IPPROTO_IP
IP_MULTICAST_LOOP
IP_MULTICAST_TTL
IPPROTO_IPV6
IPV6_MULTICAST_HOPS
IPV6_MULTICAST_LOOP
listen()
poll()
POLLIN
POLLRDNORM
POLLRDBAND
POLLPRI
POLLOUT
POLLWRNORM
POLLWRBAND
POLLERR
POLLHUP
POLLNVAL
select()
read()
recv()
MSG_PEEK
MSG_OOB
MSG_WAITALL
recvfrom()
recvmsg()
send()
MSG_EOR
MSG_NOSIGNAL
sendmsg()
sendto()
setsockopt()
IP_ADD_MEMBERSHIP
IP_ADD_SOURCE_MEMBERSHIP
IP_BLOCK_SOURCE
IP_DROP_MEMBERSHIP
IP_DROP_SOURCE_MEMBERSHIP
IP_UNBLOCK_SOURCE
IPV6_JOIN_GROUP
IPV6_LEAVE_GROUP
shutdown()
how
SHUT_RD
SHUT_WR
SHUT_RDWR
socket()
domain
AF_INET
AF_INET6
type
SOCK_STREAM
SOCK_DGRAM
write()