* Send a message that is a reply to a previously received message. * Returns -1 and sets errno on error, otherwise returns zero. */
| 183 | * Returns -1 and sets errno on error, otherwise returns zero. |
| 184 | */ |
| 185 | int |
| 186 | NgSendReplyMsg(int cs, const char *path, |
| 187 | const struct ng_mesg *msg, const void *args, size_t arglen) |
| 188 | { |
| 189 | struct ng_mesg rep; |
| 190 | |
| 191 | /* Prepare message header */ |
| 192 | rep = *msg; |
| 193 | rep.header.flags = NGF_RESP; |
| 194 | |
| 195 | /* Deliver message */ |
| 196 | return (NgDeliverMsg(cs, path, &rep, args, arglen)); |
| 197 | } |
| 198 | |
| 199 | /* |
| 200 | * Send a message to a node using control socket node "cs". |
nothing calls this directly
no test coverage detected