Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TizenSockets.c File Reference
#include "TizenSockets.h"
#include <errno.h>
#include <stdatomic.h>
#include <stdint.h>
#include <emscripten.h>

Classes

struct  kodi_sock_entry
 

Functions

int kodi_tizen_sockets_probe (void)
 
EMSCRIPTEN_KEEPALIVE void * kodi_sock_table (void)
 
EMSCRIPTEN_KEEPALIVE int kodi_sock_max_fd (void)
 
EMSCRIPTEN_KEEPALIVE int kodi_sock_errno_from_linux (int code)
 
int kodi_wasm_has_sockets (void)
 Whether BSD sockets are backed by the Tizen Sockets Extension.
 

Function Documentation

◆ kodi_sock_errno_from_linux()

EMSCRIPTEN_KEEPALIVE int kodi_sock_errno_from_linux ( int code)

◆ kodi_sock_max_fd()

EMSCRIPTEN_KEEPALIVE int kodi_sock_max_fd ( void )

◆ kodi_sock_table()

EMSCRIPTEN_KEEPALIVE void * kodi_sock_table ( void )

◆ kodi_tizen_sockets_probe()

int kodi_tizen_sockets_probe ( void )
extern

◆ kodi_wasm_has_sockets()

int kodi_wasm_has_sockets ( void )

Whether BSD sockets are backed by the Tizen Sockets Extension.

Samsung TVs expose TCP/UDP sockets and synchronous DNS to WebAssembly through tizentvwasm; elsewhere sockets keep Emscripten's default behaviour. The result is cached after the first call and is the same on every thread.