net/tcp, udp: Move tcp/udp close operation into tcp/udp folder

Move tcp/udp close operation into tcp/udp folder and remove inet_close.c
This commit is contained in:
Xiang Xiao
2020-01-21 14:11:29 +08:00
committed by Gregory Nutt
parent 677536ccf5
commit e869a10c18
8 changed files with 320 additions and 228 deletions

View File

@@ -667,6 +667,22 @@ void tcp_close_monitor(FAR struct socket *psock);
void tcp_lost_connection(FAR struct socket *psock,
FAR struct devif_callback_s *cb, uint16_t flags);
/****************************************************************************
* Name: tcp_close
*
* Description:
* Break any current TCP connection
*
* Input Parameters:
* psock - An instance of the internal socket structure.
*
* Assumptions:
* Called from normal user-level logic
*
****************************************************************************/
int tcp_close(FAR struct socket *psock);
/****************************************************************************
* Name: tcp_ipv4_select
*