Home
last modified time | relevance | path

Searched refs:localInterface (Results 1 - 9 of 9) sorted by relevance

/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_socket.c88 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 Dsys_dev.c363 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 Dsys_dev.c370 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 Dnapi_remote_object_holder.cpp167 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 Dnapi_remote_object_holder.h33 void attachLocalInterface(napi_value localInterface, std::string &descriptor);
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_socket.h53 const char *localInterface);
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/data/
H A Dlink_info.h68 LinkInfo(const std::string &localInterface, const std::string &remoteInterface,
H A Dlink_info.cpp50 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 Dnstackx_dfile.c1204 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

Completed in 7 milliseconds