Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Functions | |
bool | log_backend_net_set_addr (const char *addr) |
Allows user to set a server IP address, provided as string, at runtime. | |
bool | log_backend_net_set_ip (const struct sockaddr *addr) |
Allows user to set a server IP address, provided as sockaddr structure, at runtime. | |
static void | log_backend_net_hostname_set (const char *hostname, size_t len) |
update the hostname | |
const struct log_backend * | log_backend_net_get (void) |
Get the net logger backend. | |
void | log_backend_net_start (void) |
Start the net logger backend. | |
const struct log_backend * log_backend_net_get | ( | void | ) |
Get the net logger backend.
This function returns the net logger backend.
|
inlinestatic |
update the hostname
This function allows to update the hostname displayed by the logging backend. It will be called by the network stack if the hostname is set with net_hostname_set().
hostname | new hostname as char array. |
len | Length of the hostname array. |
bool log_backend_net_set_addr | ( | const char * | addr | ) |
Allows user to set a server IP address, provided as string, at runtime.
This function allows the user to set an IPv4 or IPv6 address at runtime. It can be called either before or after the backend has been initialized. If it gets called when the net logger backend context is running, it'll release it and create another one with the new address next time process() gets called.
addr | String that contains the IP address. |
Allows user to set a server IP address, provided as sockaddr structure, at runtime.
This function allows the user to set an IPv4 or IPv6 address at runtime. It can be called either before or after the backend has been initialized. If it gets called when the net logger backend context is running, it'll release it and create another one with the new address next time process() gets called.
addr | Pointer to the sockaddr structure that contains the IP address. |
void log_backend_net_start | ( | void | ) |
Start the net logger backend.
This function starts the net logger backend.