|
Soletta™ Framework
|
Defines the behaviour of a socket instance. More...
#include <sol-socket.h>
Data Fields | |
| uint16_t | api_version |
| must match SOL_SOCKET_OPTIONS_API_VERSION at runtime. More... | |
| const void * | data |
| User data data will be given in on_can_read() and on_can_write() More... | |
| bool(* | on_can_read )(void *data, struct sol_socket *s) |
| Register a function to be called when the socket has data to be read. More... | |
| bool(* | on_can_write )(void *data, struct sol_socket *s) |
| Register a function to be called when the socket is ready to be written. More... | |
| uint16_t | sub_api |
| To version each subclass. More... | |
Defines the behaviour of a socket instance.
| uint16_t sol_socket_options::api_version |
must match SOL_SOCKET_OPTIONS_API_VERSION at runtime.
| const void* sol_socket_options::data |
User data data will be given in on_can_read() and on_can_write()
Referenced by startup_client().
| bool(* sol_socket_options::on_can_read)(void *data, struct sol_socket *s) |
Register a function to be called when the socket has data to be read.
data the user's data given in this options. s the socket that has data to be read. true to keep being called, false otherwise. | bool(* sol_socket_options::on_can_write)(void *data, struct sol_socket *s) |
Register a function to be called when the socket is ready to be written.
data the user's data given in this options. s the socket that is able to be written. true to keep being called, false otherwise. | uint16_t sol_socket_options::sub_api |
To version each subclass.
1.8.6