Tilde Friends
Socket Interface

Functions

JSValue tf_socket_register (JSContext *context)
 
int tf_socket_get_count ()
 
int tf_socket_get_open_count ()
 

Detailed Description

Exposes network sockets to script.

Function Documentation

◆ tf_socket_get_count()

int tf_socket_get_count ( )

Get the number of active socket objects.

Returns
The count.

◆ tf_socket_get_open_count()

int tf_socket_get_open_count ( )

Get the number of connected socket objects.

Returns
the count.

◆ tf_socket_register()

JSValue tf_socket_register ( JSContext context)

Register the socket script interface.

Parameters
contextThe JS context.
Returns
The Socket constructor.