Home
last modified time | relevance | path

Searched refs:addr_un (Results 1 – 1 of 1) sorted by relevance

/cts/hostsidetests/cpptools/test-apps/ConnectorNativeProgram/
Dconnector.cpp29 void SetUnixSocketAddr(const char* name, struct sockaddr_un* addr_un, in SetUnixSocketAddr() argument
31 memset(addr_un, 0, sizeof(*addr_un)); in SetUnixSocketAddr()
32 addr_un->sun_family = AF_UNIX; in SetUnixSocketAddr()
33 strcpy(addr_un->sun_path, name); in SetUnixSocketAddr()
36 if (addr_un->sun_path[0] == '@') { in SetUnixSocketAddr()
37 addr_un->sun_path[0] = '\0'; in SetUnixSocketAddr()
43 struct sockaddr_un addr_un; in main() local
50 SetUnixSocketAddr(kDomainSocketName, &addr_un, &addr_len); in main()
51 if (connect(fd, (struct sockaddr*)&addr_un, addr_len) == -1) { in main()