/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
H A D | nstackx_socket.c | 88 const char *localInterface) in ConnectTcpServerWithTargetDev() 103 if (localInterface == NULL) { in ConnectTcpServerWithTargetDev() 106 LOGI(TAG, "bind to target interface %s", localInterface); in ConnectTcpServerWithTargetDev() 107 if (BindToTargetDev(clientSocket->sockfd, localInterface) != NSTACKX_EOK) { in ConnectTcpServerWithTargetDev() 108 LOGE(TAG, "can't bind to target interface %s", localInterface); in ConnectTcpServerWithTargetDev() 110 LOGI(TAG, "bind to target interface %s successfully", localInterface); in ConnectTcpServerWithTargetDev() 132 const char *localInterface) in ConnectUdpServerWithTargetDev() 147 if (localInterface == NULL) { in ConnectUdpServerWithTargetDev() 150 if (BindToTargetDev(clientSocket->sockfd, localInterface) != NSTACKX_EOK) { in ConnectUdpServerWithTargetDev() 151 LOGE(TAG, "can't bind to target interface %s", localInterface); in ConnectUdpServerWithTargetDev() 87 ConnectTcpServerWithTargetDev(Socket *clientSocket, const struct sockaddr_in *sockAddr, const char *localInterface) ConnectTcpServerWithTargetDev() argument 131 ConnectUdpServerWithTargetDev(Socket *clientSocket, const struct sockaddr_in *sockAddr, const char *localInterface) ConnectUdpServerWithTargetDev() argument 291 ClientSocketWithTargetDev(SocketProtocol protocol, const struct sockaddr_in *sockAddr, const char *localInterface) ClientSocketWithTargetDev() argument [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/ |
H A D | sys_dev.c | 363 struct ifreq localInterface; in BindToDevInTheSameLan() local 367 (void)memset_s(&localInterface, sizeof(localInterface), 0, sizeof(localInterface)); in BindToDevInTheSameLan() 368 if (GetTargetInterface(sockAddr, &localInterface) != NSTACKX_EOK) { in BindToDevInTheSameLan() 372 if (setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, (char *)&localInterface, sizeof(localInterface)) < 0) { in BindToDevInTheSameLan() 376 LOGI(TAG, "bind to %s successfully", localInterface.ifr_name); in BindToDevInTheSameLan()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/ |
H A D | sys_dev.c | 370 struct ifreq localInterface; in BindToDevInTheSameLan() local 374 (void)memset_s(&localInterface, sizeof(localInterface), 0, sizeof(localInterface)); in BindToDevInTheSameLan() 375 if (GetTargetInterface(sockAddr, &localInterface) != NSTACKX_EOK) { in BindToDevInTheSameLan() 379 if (setsockopt(sockfd, SOL_SOCKET, SO_BINDTODEVICE, (char *)&localInterface, sizeof(localInterface)) < 0) { in BindToDevInTheSameLan() 383 LOGI(TAG, "bind to %s successfully", localInterface.ifr_name); in BindToDevInTheSameLan()
|
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_remote_object_holder.cpp | 167 void NAPIRemoteObjectHolder::attachLocalInterface(napi_value localInterface, std::string &descriptor)
in attachLocalInterface() argument 176 napi_create_reference(env_, localInterface, 0, &localInterfaceRef_);
in attachLocalInterface()
|
/foundation/communication/ipc/ipc/native/src/napi_common/include/ |
H A D | napi_remote_object_holder.h | 33 void attachLocalInterface(napi_value localInterface, std::string &descriptor);
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/ |
H A D | nstackx_socket.h | 53 const char *localInterface);
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/ |
H A D | link_info.h | 68 LinkInfo(const std::string &localInterface, const std::string &remoteInterface,
|
H A D | link_info.cpp | 50 LinkInfo::LinkInfo(const std::string &localInterface, const std::string &remoteInterface, LinkMode localMode, in LinkInfo() argument 53 SetLocalInterface(localInterface); in LinkInfo()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_dfile.c | 1204 uint16_t *connType, const char *localInterface, uint8_t socketIndex) in DFileSenderInitWithTargetDev() 1210 Socket *socket = ClientSocketWithTargetDev(protocol, sockAddr, localInterface); in DFileSenderInitWithTargetDev() 1203 DFileSenderInitWithTargetDev(DFileSession *session, const struct sockaddr_in *sockAddr, uint16_t *connType, const char *localInterface, uint8_t socketIndex) DFileSenderInitWithTargetDev() argument
|