Searched refs:coapCtx (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_device.c | 110 static int32_t UpdateDeviceDbInDeviceList(const CoapCtxType *coapCtx, const DeviceInfo *deviceInfo, in UpdateDeviceDbInDeviceList() argument 115 …if (strcpy_s(info.networkIpAddr, NSTACKX_MAX_IP_STRING_LEN, GetLocalIfaceIpStr(coapCtx->iface)) !=… in UpdateDeviceDbInDeviceList() 116 …strcpy_s(info.networkName, NSTACKX_MAX_INTERFACE_NAME_LEN, GetLocalIfaceName(coapCtx->iface)) != E… in UpdateDeviceDbInDeviceList() 137 int32_t UpdateDeviceDb(const CoapCtxType *coapCtx, const DeviceInfo *deviceInfo, uint8_t forceUpdat… in UpdateDeviceDb() argument 140 int32_t ret = UpdateDeviceDbInDeviceList(coapCtx, deviceInfo, forceUpdate, receiveBcast); in UpdateDeviceDb() 149 int32_t ReportDiscoveredDevice(const CoapCtxType *coapCtx, const DeviceInfo *deviceInfo, in ReportDiscoveredDevice() argument 153 return UpdateDeviceDb(coapCtx, deviceInfo, forceUpdate, receiveBcast); in ReportDiscoveredDevice() 155 (void)coapCtx; in ReportDiscoveredDevice()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_device.h | 149 int32_t UpdateDeviceDb(const CoapCtxType *coapCtx, const DeviceInfo *deviceInfo, uint8_t forceUpdat… 154 int32_t ReportDiscoveredDevice(const CoapCtxType *coapCtx, const DeviceInfo *deviceInfo,
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/mini_discover/ |
H A D | coap_discover.c | 142 const CoapCtxType *coapCtx = CoapGetCoapCtxType(); in HndPostServiceDiscoverEx() local 143 if (coapCtx == NULL) { in HndPostServiceDiscoverEx() 156 GetLocalIfaceName(coapCtx->iface)) != EOK) { in HndPostServiceDiscoverEx() 170 if (UpdateDeviceDb(coapCtx, deviceInfo, g_forceUpdate, receiveBcast) != NSTACKX_EOK) in HndPostServiceDiscoverEx()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/coap_discover/ |
H A D | coap_app.c | 66 CoapCtxType *coapCtx = (CoapCtxType *)pos; in CoapGetCoapCtxType() local 67 if (coapCtx->ctx == ctx) { in CoapGetCoapCtxType() 68 return coapCtx; in CoapGetCoapCtxType()
|
H A D | coap_discover.c | 303 const CoapCtxType *coapCtx = CoapGetCoapCtxType(currCtx); in HndPostServiceDiscoverEx() local 304 if (coapCtx == NULL) { in HndPostServiceDiscoverEx() 310 GetLocalIfaceName(coapCtx->iface)) != EOK) { in HndPostServiceDiscoverEx() 324 if (ReportDiscoveredDevice(coapCtx, deviceInfo, g_forceUpdate, receiveBcast) != NSTACKX_EOK) { in HndPostServiceDiscoverEx()
|