mirror of
https://github.com/apache/nuttx.git
synced 2025-12-19 10:54:48 +08:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user