Home
last modified time | relevance | path

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

/external/nanopb-c/examples/network_server/
Dclient.c91 struct sockaddr_in servaddr; in main() local
99 memset(&servaddr, 0, sizeof(servaddr)); in main()
100 servaddr.sin_family = AF_INET; in main()
101 servaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main()
102 servaddr.sin_port = htons(1234); in main()
104 if (connect(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) != 0) in main()
Dserver.c90 struct sockaddr_in servaddr; in main() local
97 memset(&servaddr, 0, sizeof(servaddr)); in main()
98 servaddr.sin_family = AF_INET; in main()
99 servaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main()
100 servaddr.sin_port = htons(1234); in main()
101 if (bind(listenfd, (struct sockaddr*)&servaddr, sizeof(servaddr)) != 0) in main()
/external/curl/docs/examples/
Dexternalsocket.c87 struct sockaddr_in servaddr; /* socket address structure */ in main() local
114 memset(&servaddr, 0, sizeof(servaddr)); in main()
115 servaddr.sin_family = AF_INET; in main()
116 servaddr.sin_port = htons(PORTNUM); in main()
118 if (INADDR_NONE == (servaddr.sin_addr.s_addr = inet_addr(IPADDR))) in main()
121 if(connect(sockfd,(struct sockaddr *) &servaddr, sizeof(servaddr)) == in main()
/external/clang/tools/libclang/
DCIndexCodeCompletion.cpp774 struct sockaddr_in servaddr; in clang_codeCompleteAt_Impl() local
775 bzero(&servaddr, sizeof(servaddr)); in clang_codeCompleteAt_Impl()
776 servaddr.sin_family = AF_INET; in clang_codeCompleteAt_Impl()
777 servaddr.sin_port = htons(UDP_CODE_COMPLETION_LOGGER_PORT); in clang_codeCompleteAt_Impl()
779 &servaddr.sin_addr) <= 0) in clang_codeCompleteAt_Impl()
787 (struct sockaddr *)&servaddr, sizeof(servaddr)); in clang_codeCompleteAt_Impl()
/external/libmicrohttpd/src/microhttpd/
Ddaemon.c3135 const struct sockaddr **servaddr,
3149 const struct sockaddr **servaddr, in parse_options() argument
3155 va_start (ap, servaddr); in parse_options()
3156 ret = parse_options_va (daemon, servaddr, ap); in parse_options()
3172 const struct sockaddr **servaddr, in parse_options_va() argument
3213 *servaddr = va_arg (ap, const struct sockaddr *); in parse_options_va()
3367 servaddr, in parse_options_va()
3382 servaddr, in parse_options_va()
3391 servaddr, in parse_options_va()
3400 servaddr, in parse_options_va()
[all …]