* Receive incoming data */
| 237 | * Receive incoming data |
| 238 | */ |
| 239 | static int |
| 240 | nga_rcvdata(hook_p hook, item_p item) |
| 241 | { |
| 242 | const sc_p sc = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); |
| 243 | |
| 244 | if (hook == sc->sync) |
| 245 | return (nga_rcv_sync(sc, item)); |
| 246 | if (hook == sc->async) |
| 247 | return (nga_rcv_async(sc, item)); |
| 248 | panic("%s", __func__); |
| 249 | } |
| 250 | |
| 251 | /* |
| 252 | * Receive incoming control message |
nothing calls this directly
no test coverage detected