15#if defined(OS_USE_OS_APP_CONFIG_H)
16#include <cmsis-plus/os-app-config.h>
27#pragma clang diagnostic ignored "-Wc++98-compat"
43#if defined(OS_TRACE_POSIX_IO_SOCKET)
50#if defined(OS_TRACE_POSIX_IO_SOCKET)
66 if (new_socket ==
nullptr)
146 return impl ().
do_recvfrom (buffer, length, flags, address, address_len);
183 return impl ().
do_sendto (message, length, flags, dest_addr, dest_len);
218#if defined(OS_TRACE_POSIX_IO_SOCKET)
225#if defined(OS_TRACE_POSIX_IO_SOCKET)
io * alloc_file_descriptor(void)
virtual int do_bind(const sockaddr *address, socklen_t address_len)=0
virtual int do_getpeername(sockaddr *address, socklen_t *address_len)=0
virtual int do_getsockopt(int level, int option_name, void *option_value, socklen_t *option_len)=0
virtual socket * do_accept(sockaddr *address, socklen_t *address_len)=0
virtual int do_listen(int backlog)=0
virtual ~socket_impl() override
virtual int do_setsockopt(int level, int option_name, const void *option_value, socklen_t option_len)=0
virtual ssize_t do_recvfrom(void *buffer, size_t length, int flags, sockaddr *address, socklen_t *address_len)=0
virtual ssize_t do_sendmsg(const msghdr *message, int flags)=0
virtual ssize_t do_recv(void *buffer, size_t length, int flags)=0
virtual ssize_t do_send(const void *buffer, size_t length, int flags)=0
virtual ssize_t do_sendto(const void *message, size_t length, int flags, const sockaddr *dest_addr, socklen_t dest_len)=0
virtual int do_getsockname(sockaddr *address, socklen_t *address_len)=0
virtual ssize_t do_recvmsg(msghdr *message, int flags)=0
virtual int do_connect(const sockaddr *address, socklen_t address_len)=0
virtual int do_sockatmark(void)=0
virtual int do_shutdown(int how)=0
virtual int setsockopt(int level, int option_name, const void *option_value, socklen_t option_len)
virtual int sockatmark(void)
virtual int listen(int backlog)
virtual int getsockname(sockaddr *address, socklen_t *address_len)
virtual socket * accept(sockaddr *address, socklen_t *address_len)
virtual int bind(const sockaddr *address, socklen_t address_len)
virtual ssize_t recv(void *buffer, size_t length, int flags)
virtual ssize_t sendto(const void *message, size_t length, int flags, const sockaddr *dest_addr, socklen_t dest_len)
virtual ssize_t send(const void *buffer, size_t length, int flags)
virtual int getpeername(sockaddr *address, socklen_t *address_len)
virtual ssize_t sendmsg(const msghdr *message, int flags)
virtual int connect(const sockaddr *address, socklen_t address_len)
virtual ssize_t recvfrom(void *buffer, size_t length, int flags, sockaddr *address, socklen_t *address_len)
virtual int shutdown(int how)
virtual ~socket() override
virtual ssize_t recvmsg(msghdr *message, int flags)
virtual int getsockopt(int level, int option_name, void *option_value, socklen_t *option_len)
socket_impl & impl(void) const
int printf(const char *format,...)
Write a formatted string to the trace device.