mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Explain what the return value from NgRecvMsg() and NgRecvData() means,
specifically that 0 means the socket has been closed.
This commit is contained in:
parent
f0e093f298
commit
fd048a1c8a
1 changed files with 6 additions and 0 deletions
|
|
@ -170,6 +170,9 @@ is non-NULL, it must point to a buffer of at least
|
|||
bytes, which will be filled in (and NUL terminated) with the path to
|
||||
the node from which the message was received.
|
||||
.Pp
|
||||
The length of the control message is returned.
|
||||
A return value of zero indicates that the socket was closed.
|
||||
.Pp
|
||||
.Fn NgRecvAsciiMsg
|
||||
works exactly like
|
||||
.Fn NgRecvMsg ,
|
||||
|
|
@ -206,6 +209,9 @@ is non-NULL, it must point to a buffer of at least
|
|||
bytes, which will be filled in (and NUL terminated) with the name of
|
||||
the hook on which the data was received.
|
||||
.Pp
|
||||
The length of the packet is returned.
|
||||
A return value of zero indicates that the socket was closed.
|
||||
.Pp
|
||||
.Fn NgSetDebug
|
||||
and
|
||||
.Fn NgSetErrLog
|
||||
|
|
|
|||
Loading…
Reference in a new issue