34#pragma clang diagnostic ignored "-Wc++98-compat"
49#pragma GCC diagnostic push
51#pragma clang diagnostic ignored "-Wexit-time-destructors"
52#pragma clang diagnostic ignored "-Wglobal-constructors"
55 net_stack::net_list net_stack::net_list__;
57#pragma GCC diagnostic pop
64#pragma GCC diagnostic push
65#pragma GCC diagnostic ignored "-Wunused-parameter"
67#pragma GCC diagnostic ignored "-Wnonnull"
70 socket (
int domain,
int type,
int protocol)
76 class socket* sock = ns->
socket (domain, type, protocol);
85#pragma GCC diagnostic pop
93#if defined(OS_TRACE_POSIX_IO_NET_STACK)
94 trace::printf (
"net_stack::%s(\"%s\")=%p\n", __func__, name_,
this);
96 deferred_sockets_list_.clear ();
101#if defined(OS_TRACE_POSIX_IO_NET_STACK)
102 trace::printf (
"net_stack::%s(\"%s\") %p\n", __func__, name_,
this);
117 interface_ (interface)
119#if defined(OS_TRACE_POSIX_IO_FILE_SYSTEM)
126#if defined(OS_TRACE_POSIX_IO_FILE_SYSTEM)
127 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)