BSB Developer Docs
Loading...
Searching...
No Matches
network.h
Go to the documentation of this file.
1
5#pragma once
6
7#include <lwip/netif.h>
8
14#define RECORD_NETWORK "network"
15
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
36struct netif* network_find_netif(NetworkNetif netif);
37
46void network_netif_assign_name(struct netif* netif, NetworkNetif id);
47
49typedef struct Network Network;
50
67
77
78#ifdef __cplusplus
79}
80#endif
void network_deinit_current_thread(Network *instance)
Deinitialise the calling thread.
Definition network.c:53
NetworkNetif
Identifies a logical network interface.
Definition network.h:17
@ NetworkNetifUsb
USB-NCM (EX) interface.
Definition network.h:19
@ NetworkNetifWifi
Wi-Fi (WL) interface.
Definition network.h:18
@ NetworkNetifCount
Sentinel — not a valid interface.
Definition network.h:20
void network_netif_assign_name(struct netif *netif, NetworkNetif id)
Assign the lwIP 2-character name to a netif.
Definition network.c:22
struct Network Network
Opaque Network type declaration.
Definition network.h:49
void network_init_current_thread(Network *instance)
Initialise the calling thread for use with the TCP/IP stack.
Definition network.c:48
struct netif * network_find_netif(NetworkNetif netif)
Find a netif by its logical interface identifier.
Definition network.c:30