Searched refs:NSTACKX_MAX_SERVICE_DATA_LEN (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/communication/dsoftbus/tests/core/discovery/dfinder/ |
H A D | nstackx_test.c | 214 (void)memset_s(g_capData, NSTACKX_MAX_SERVICE_DATA_LEN, 0, NSTACKX_MAX_SERVICE_DATA_LEN); in TestRegisterServiceData() 215 int32_t ret = sprintf_s(g_capData, NSTACKX_MAX_SERVICE_DATA_LEN, "port:%d,", authPort); in TestRegisterServiceData() 227 g_capData = (char *)malloc(NSTACKX_MAX_SERVICE_DATA_LEN); in TestInit() 232 (void)memset_s(g_capData, NSTACKX_MAX_SERVICE_DATA_LEN, 0, NSTACKX_MAX_SERVICE_DATA_LEN); in TestInit()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/ |
H A D | nstackx_device.h | 134 char serviceData[NSTACKX_MAX_SERVICE_DATA_LEN];
|
/ohos5.0/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/ |
H A D | disc_nstackx_adapter.c | 260 char serviceData[NSTACKX_MAX_SERVICE_DATA_LEN] = {0}; in DiscCoapRegisterServiceData() 261 if (sprintf_s(serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, "port:%d,", authPort) == -1) { in DiscCoapRegisterServiceData() 266 ret = DiscCoapFillServiceData(option, serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, allCap); in DiscCoapRegisterServiceData()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/ |
H A D | nstackx.h | 36 #define NSTACKX_MAX_SERVICE_DATA_LEN 64 macro
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/ |
H A D | nstackx_common.c | 1245 if (strlen(serviceData) >= NSTACKX_MAX_SERVICE_DATA_LEN) { in NSTACKX_RegisterServiceData() 1250 serviceDataTmp = calloc(1U, NSTACKX_MAX_SERVICE_DATA_LEN); in NSTACKX_RegisterServiceData() 1254 …if (strncpy_s(serviceDataTmp, NSTACKX_MAX_SERVICE_DATA_LEN, serviceData, strlen(serviceData)) != E… in NSTACKX_RegisterServiceData()
|
H A D | nstackx_device.c | 185 …(deviceInfo->serviceData) != 0 && strlen(deviceInfo->serviceData) < NSTACKX_MAX_SERVICE_DATA_LEN) { in SetServiceDataFromDeviceInfo()
|
H A D | nstackx_device_local.c | 525 …if (strcpy_s(g_localDevice.deviceInfo.serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, serviceData) != E… in SetLocalDeviceServiceData()
|
H A D | nstackx_device_remote.c | 385 … if (strcpy_s(curInfo->serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, newInfo->serviceData) != EOK) { in UpdateDeviceInfo()
|