MCPcopy Create free account
hub / github.com/F-Stack/f-stack / NgSendReplyMsg

Function NgSendReplyMsg

tools/libnetgraph/msg.c:185–197  ·  view source on GitHub ↗

* Send a message that is a reply to a previously received message. * Returns -1 and sets errno on error, otherwise returns zero. */

Source from the content-addressed store, hash-verified

183 * Returns -1 and sets errno on error, otherwise returns zero.
184 */
185int
186NgSendReplyMsg(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".

Callers

nothing calls this directly

Calls 1

NgDeliverMsgFunction · 0.85

Tested by

no test coverage detected