net/tcp/udp: move the send callback into tcp/udp structure

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2022-02-07 11:03:03 +08:00
committed by Alan Carvalho de Assis
parent cfee589a4a
commit 39e142243d
8 changed files with 39 additions and 41 deletions
-7
View File
@@ -264,13 +264,6 @@ struct socket
/* Socket interface */
FAR const struct sock_intf_s *s_sockif;
#if defined(CONFIG_NET_TCP_WRITE_BUFFERS) || \
defined(CONFIG_NET_UDP_WRITE_BUFFERS)
/* Callback instance for TCP send() or UDP sendto() */
FAR struct devif_callback_s *s_sndcb;
#endif
};
/****************************************************************************