tizen sockets extension api references this topic lists methods provided by the tizen sockets extension for webassembly related info the open group base specifications issue 7 the linux documentation project die net man7 org importantthe http //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 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 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 and sock_cloexec flags when creating socket accept4 method ipv4 multicast options in getsockopt and setsockopt methods gethostbyaddr method gethostbyname method method argument value reference accept - the open group base specifications issue 7, 2018 edition - accept accept4 values in flags sock_nonblocksock_cloexec die net - accept4 bind - die net - accept4the open group base specifications issue 7, 2018 edition - bind close - the open group base specifications issue 7, 2018 edition - close connect - the open group base specifications issue 7, 2018 edition - connect freeaddrinfo - the open group base specifications issue 7, 2018 edition - freeaddrinfo getaddrinfo - the open group base specifications issue 7, 2018 edition - getaddrinfo gethostbyaddr - die net - gethostbyaddr gethostbyname - die net - gethostbyname getpeername - the open group base specifications issue 7, 2018 edition - getpeername getsockname - the open group base specifications issue 7, 2018 edition - getsockname getsockopt combinations of level and optname sol_socket, so_debugsol_socket, so_error sol_socket, so_broadcast sol_socket, so_reuseaddr sol_socket, so_keepalive sol_socket, so_oobinline sol_socket, so_sndbuf sol_socket, so_rcvbuf sol_socket, so_dontroute sol_socket, so_rcvlowat sol_socket, so_sndlowat sol_socket, so_rcvtimeo sol_socket, so_sndtimeo sol_socket, so_linger ipproto_tcp, tcp_nodelay ipproto_ip, ip_multicast_loop ipproto_ip, ip_multicast_ttl ipproto_ipv6, ipv6_multicast_hops ipproto_ipv6, ipv6_multicast_loop the open group base specifications issue 7, 2018 edition - getsockoptthe linux documentation project - multicast programming man7 org - ip listen - the open group base specifications issue 7, 2018 edition - listen poll supported event flags pollin pollrdnorm pollrdband pollpri pollout pollwrnorm pollwrband pollerr pollhup pollnvalusage notes the tizen sockets extension for webassembly does not support mixing descriptor types in poll calls an application must use only one type of descriptors each time it calls poll to pass either socket descriptors or file descriptors as arguments of a single call, never both it is recommended to use poll over select , because the internalselect implementation in the samsung emscripten sdk can be slow the open group base specifications issue 7, 2018 edition - poll read - the open group base specifications issue 7, 2018 edition - read recv values in flags msg_peek msg_oob msg_waitall the open group base specifications issue 7, 2018 edition - recv recvfrom values in flags msg_peek msg_oob msg_waitall the open group base specifications issue 7, 2018 edition - recvfrom recvmsg values in flags msg_peek msg_oob msg_waitall the open group base specifications issue 7, 2018 edition - recvmsg select usage notes tthe tizen sockets extension for webassembly does not support mixing descriptor types in select calls an application must use only one type of descriptors each time it calls select to pass either socket descriptors or file descriptors as arguments of a single call, never both the select method can be slow due to its internal implementation in the samsung emscripten sdk it is recommended to use poll instead the open group base specifications issue 7, 2018 edition - select send values in flags msg_eor msg_oobmsg_nosignal the open group base specifications issue 7, 2018 edition - send sendmsg values in flags msg_eor msg_oob msg_nosignal the open group base specifications issue 7, 2018 edition - sendmsg sendto values in flags msg_eor msg_oob msg_nosignal the open group base specifications issue 7, 2018 edition - sendto setsockopt combinations of level and optname sol_socket, so_debug, sol_socket, so_broadcast sol_socket, so_reuseaddr sol_socket, so_keepalive sol_socket, so_oobinline sol_socket, so_sndbuf sol_socket, so_rcvbuf sol_socket, so_dontroute sol_socket, so_rcvlowat sol_socket, so_sndlowat sol_socket, so_rcvtimeo sol_socket, so_sndtimeo sol_socket, so_linger ipproto_tcp, tcp_nodelayipproto_ip, ip_multicast_loop ipproto_ip, ip_multicast_ttl ipproto_ip, ip_add_membership ipproto_ip, ip_add_source_membership ipproto_ip, ip_block_source ipproto_ip, ip_drop_membershipipproto_ip, ip_drop_source_membership ipproto_ip, ip_unblock_source ipproto_ipv6, ipv6_multicast_hops ipproto_ipv6, ipv6_multicast_loop ipproto_ipv6, ipv6_join_group ipproto_ipv6, ipv6_leave_group the open group base specifications issue 7, 2018 edition - setsockoptthe linux documentation product - multicast programming map7 org - ip shutdown values in how shut_rd shut_wr shut_rdwr the open group base specifications issue 7, 2018 edition - shutdown socket values in domain af_inet af_inet6 values in type sock_stream sock_dgram flags bitwise ored with type argument sock_cloexec sock_nonblock the open group base specifications issue 7, 2018 edition - socket man7 org - socket write - the open group base specifications issue 7, 2018 edition - write table 1 tizen sockets extension methods