QNX Developer Support
![]() |
![]() |
![]() |
![]() |
endhostent()
Close the TCP connection and the hosts file
Synopsis:
#include <netdb.h> void endhostent( void );
Library:
libsocket
Use the -l socket option to qcc to link against this library.
Description:
The endhostent() routine closes the TCP connection and the hosts file.
Files:
- /etc/hosts
- Host database file.
Classification:
| Safety: | |
|---|---|
| Cancellation point | Yes |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
gethostbyaddr(), gethostbyname(), gethostent(), hostent, sethostent()
/etc/hosts, /etc/resolv.conf in the Utilities Reference
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
