Home
last modified time | relevance | path

Searched refs:optValue (Results 1 - 13 of 13) sorted by relevance

/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_socket_option.c22 int32_t SetExtSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, uint32_t optValueSize) in SetExtSocketOpt() argument
27 (void)optValue; in SetExtSocketOpt()
32 int32_t GetExtSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, int32_t *optValueSize) in GetExtSocketOpt() argument
37 (void)optValue; in GetExtSocketOpt()
H A Dclient_trans_socket_service.c234 static int32_t CheckSocketOptParam(OptLevel level, OptType optType, void *optValue) in CheckSocketOptParam() argument
244 if (optValue == NULL) { in CheckSocketOptParam()
245 TRANS_LOGE(TRANS_SDK, "invalid optValue."); in CheckSocketOptParam()
251 int32_t SetSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, int32_t optValueSize) in SetSocketOpt() argument
253 int32_t ret = CheckSocketOptParam(level, optType, optValue); in SetSocketOpt()
268 ret = SetExtSocketOpt(socket, level, optType, optValue, optValueSize); in SetSocketOpt()
274 int32_t GetSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, int32_t *optValueSize) in GetSocketOpt() argument
276 int32_t ret = CheckSocketOptParam(level, optType, optValue); in GetSocketOpt()
291 ret = GetExtSocketOpt(socket, level, optType, optValue, optValueSize); in GetSocketOpt()
/foundation/communication/dsoftbus/sdk/transmission/session/include/
H A Dclient_trans_socket_option.h26 int32_t SetExtSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, uint32_t optValueSize);
27 int32_t GetExtSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, int32_t *optValueSize);
/foundation/communication/dsoftbus/interfaces/inner_kits/transport/
H A Dinner_socket.h108 * @param optValue Indicates the pointer to the option value to set, which cannot be <b>NULL</b>.
111 * @return Returns <b>SOFTBUS_INVALID_PARAM</b> if <b>optValue</b> is <b>NULL</b> or <b>optValueSize</b> is zero.
116 int32_t SetSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, int32_t optValueSize);
124 * @param optValue Indicates the pointer to the option value to get, which cannot be <b>NULL</b>.
125 * @param optValueSize Indicates the pointer to the optValue size to get, which cannot be <b>NULL</b>.
127 * @return Returns <b>SOFTBUS_INVALID_PARAM</b> if <b>optValue</b> is <b>NULL</b> or <b>optValueSize</b> is <b>NULL</b>.
132 int32_t GetSocketOpt(int32_t socket, OptLevel level, OptType optType, void *optValue, int32_t *optValueSize);
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/src/
H A Dclient_trans_stream_virtual.c52 int32_t TransSetStreamMultiLayer(int32_t channelId, const void *optValue) in TransSetStreamMultiLayer() argument
55 (void)optValue; in TransSetStreamMultiLayer()
H A Dclient_trans_stream.c217 int32_t TransSetStreamMultiLayer(int32_t channelId, const void *optValue) in TransSetStreamMultiLayer() argument
223 return SetVtpStreamMultiLayerOpt(channelId, optValue); in TransSetStreamMultiLayer()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/include/
H A Dclient_trans_stream.h38 int32_t TransSetStreamMultiLayer(int32_t channelId, const void *optValue);
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/adaptor/include/
H A Dclient_trans_udp_stream_interface.h71 int32_t SetVtpStreamMultiLayerOpt(int32_t channelId, const void *optValue);
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_client_state_machine.cpp1555 unsigned char optValue[VENDOR_MAX_LEN - DHCP_OPT_CODE_BYTES - DHCP_OPT_LEN_BYTES] = {0}; in AddClientIdToOpts() local
1556 optValue[DHCP_OPT_CODE_INDEX] = CLIENT_IDENTIFIER_OPTION; in AddClientIdToOpts()
1557 optValue[DHCP_OPT_LEN_INDEX] = MAC_ADDR_LEN + 1; in AddClientIdToOpts()
1558 optValue[DHCP_OPT_DATA_INDEX] = NUMBER_ONE; /* Generate format: 1 + ifaceMac. */ in AddClientIdToOpts()
1559 if (memcpy_s(optValue + DHCP_OPT_DATA_INDEX + 1, MAC_ADDR_LEN, m_cltCnf.ifaceMac, MAC_ADDR_LEN) != EOK) { in AddClientIdToOpts()
1563 int optValueLen = DHCP_OPT_CODE_BYTES + DHCP_OPT_LEN_BYTES + optValue[DHCP_OPT_LEN_INDEX]; in AddClientIdToOpts()
1565 AddOptStrToOpts(packet->options, optValue, optValueLen); in AddClientIdToOpts()
1600 unsigned char optValue[VENDOR_MAX_LEN] = {0}; in AddStrToOpts() local
1601 optValue[DHCP_OPT_CODE_INDEX] = option; in AddStrToOpts()
1602 optValue[DHCP_OPT_LEN_INDE in AddStrToOpts()
[all...]
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/adaptor/src/
H A Dclient_trans_udp_stream_interface.cpp146 int32_t SetVtpStreamMultiLayerOpt(int32_t channelId, const void *optValue) in SetVtpStreamMultiLayerOpt() argument
148 if (optValue == nullptr) { in SetVtpStreamMultiLayerOpt()
149 TRANS_LOGE(TRANS_STREAM, "invalid argument optValue channelId %{public}d", channelId); in SetVtpStreamMultiLayerOpt()
162 return adaptor->GetStreamManager()->SetMultiLayer(optValue); in SetVtpStreamMultiLayerOpt()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/include/
H A Dclient_trans_udp_manager.h95 int32_t TransUdpChannelSetStreamMultiLayer(int32_t channelId, const void *optValue);
/foundation/communication/dsoftbus/components/nstackx/fillp/include/
H A Dfillpinc.h558 * @param[out] optValue Indicates the option value obtained by invoking the FtGetSockOpt API.
565 void *optValue, FILLP_INT *optLen);
577 * @param[in] optValue Indicates the option value obtained by invoking the FtGetSockOpt API.
584 FILLP_CONST void *optValue, socklen_t optLen);
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/common/src/
H A Dclient_trans_udp_manager.c508 int32_t TransUdpChannelSetStreamMultiLayer(int32_t channelId, const void *optValue) in TransUdpChannelSetStreamMultiLayer() argument
520 return TransSetStreamMultiLayer(channelId, optValue); in TransUdpChannelSetStreamMultiLayer()

Completed in 13 milliseconds