13#if defined(OS_USE_OS_APP_CONFIG_H)
14#include <cmsis-plus/os-app-config.h>
23#pragma clang diagnostic ignored "-Wc++98-compat"
38#pragma GCC diagnostic push
40#pragma clang diagnostic ignored "-Wexit-time-destructors"
41#pragma clang diagnostic ignored "-Wglobal-constructors"
44 net_stack::net_list net_stack::net_list__;
46#pragma GCC diagnostic pop
53#pragma GCC diagnostic push
55#elif defined(__GNUC__)
56#pragma GCC diagnostic ignored "-Wunused-parameter"
59#pragma GCC diagnostic ignored "-Wnonnull"
60#pragma GCC diagnostic ignored "-Wnull-dereference"
63 socket (
int domain,
int type,
int protocol)
69 class socket* sock = ns->
socket (domain, type, protocol);
78#pragma GCC diagnostic pop
86#if defined(OS_TRACE_POSIX_IO_NET_STACK)
87 trace::printf (
"net_stack::%s(\"%s\")=%p\n", __func__, name_,
this);
89 deferred_sockets_list_.clear ();
94#if defined(OS_TRACE_POSIX_IO_NET_STACK)
95 trace::printf (
"net_stack::%s(\"%s\") %p\n", __func__, name_,
this);
99#pragma GCC diagnostic push
100#if defined(__clang__)
101#elif defined(__GNUC__)
102#pragma GCC diagnostic ignored "-Wsuggest-final-methods"
111#pragma GCC diagnostic pop
116 interface_ (interface)
118#if defined(OS_TRACE_POSIX_IO_FILE_SYSTEM)
125#if defined(OS_TRACE_POSIX_IO_FILE_SYSTEM)
126 trace::printf (
"net_stack_impl::%s() @%p\n", __func__,
this);
io * alloc_file_descriptor(void)
virtual class socket * do_socket(int domain, int type, int protocol)=0
virtual ~net_stack_impl()
net_stack_impl(net_interface &interface)
net_stack(net_stack_impl &impl, const char *name)
net_stack_impl & impl(void) const
virtual class socket * socket(int domain, int type, int protocol)
int printf(const char *format,...)
Write a formatted string to the trace device.
int socket(int domain, int type, int protocol)