Nagios  4.4.7
Dev docs for Nagios core and neb-module hackers
nwrite.h File Reference

Functions that properly handle incomplete write()'s. More...

Go to the source code of this file.

Detailed Description

Functions that properly handle incomplete write()'s.

Some functions simply use write() to send data through a socket. These calls are sometimes interrupted, especially in the case of an overly large buffer. Even though the write() could finish, the incomplete write is treated as an error. The functions here properly handle those cases.