Channels And Callback
- Push —
PUSH_TCP_SOCK_NAMEis"push": the gateway connects to the configured server IP/port (ident, alive, outbound payloads; server data is read on the same socket). - Pull —
PULL_TCP_SOCK_NAMEis"pull": the gateway bind/listens on the local pull port; a head-end or test tool connects as a client. IncomingMsngCb_t—void (*)(const char *channel, const char *data, unsigned int dataLength);channelis"push"or"pull"so upper layers can dispatch JSON or TLV parsers.