Home
last modified time | relevance | path

Searched refs:NSTACKX_MAX_SERVICE_DATA_LEN (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/dsoftbus/tests/core/discovery/dfinder/
H A Dnstackx_test.c214 (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()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/include/
H A Dnstackx_device.h133 char serviceData[NSTACKX_MAX_SERVICE_DATA_LEN];
/foundation/communication/dsoftbus/core/discovery/coap/nstackx_coap/src/
H A Ddisc_nstackx_adapter.c248 char serviceData[NSTACKX_MAX_SERVICE_DATA_LEN] = {0}; in DiscCoapRegisterServiceData()
249 if (sprintf_s(serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, "port:%d,", authPort) == -1) { in DiscCoapRegisterServiceData()
254 ret = DiscCoapFillServiceData(option, serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, allCap); in DiscCoapRegisterServiceData()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/interface/
H A Dnstackx.h35 #define NSTACKX_MAX_SERVICE_DATA_LEN 64 macro
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_device.c185 if (strlen(deviceInfo->serviceData) != 0 && strlen(deviceInfo->serviceData) < NSTACKX_MAX_SERVICE_DATA_LEN) { in SetServiceDataFromDeviceInfo()
H A Dnstackx_common.c1242 if (strlen(serviceData) >= NSTACKX_MAX_SERVICE_DATA_LEN) { in NSTACKX_RegisterServiceData()
1247 serviceDataTmp = calloc(1U, NSTACKX_MAX_SERVICE_DATA_LEN); in NSTACKX_RegisterServiceData()
1251 if (strncpy_s(serviceDataTmp, NSTACKX_MAX_SERVICE_DATA_LEN, serviceData, strlen(serviceData)) != EOK) { in NSTACKX_RegisterServiceData()
H A Dnstackx_device_local.c518 if (strcpy_s(g_localDevice.deviceInfo.serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, serviceData) != EOK) { in SetLocalDeviceServiceData()
H A Dnstackx_device_remote.c377 if (strcpy_s(curInfo->serviceData, NSTACKX_MAX_SERVICE_DATA_LEN, newInfo->serviceData) != EOK) { in UpdateDeviceInfo()

Completed in 14 milliseconds