Searched refs:servaddr (Results 1 - 5 of 5) sorted by relevance
/external/nanopb-c/examples/network_server/ |
H A D | client.c | 91 struct sockaddr_in servaddr; local 99 memset(&servaddr, 0, sizeof(servaddr)); 100 servaddr.sin_family = AF_INET; 101 servaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 102 servaddr.sin_port = htons(1234); 104 if (connect(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) != 0)
|
H A D | server.c | 90 struct sockaddr_in servaddr; local 97 memset(&servaddr, 0, sizeof(servaddr)); 98 servaddr.sin_family = AF_INET; 99 servaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 100 servaddr.sin_port = htons(1234); 101 if (bind(listenfd, (struct sockaddr*)&servaddr, sizeof(servaddr)) != 0)
|
/external/curl/docs/examples/ |
H A D | externalsocket.c | 88 struct sockaddr_in servaddr; /* socket address structure */ local 115 memset(&servaddr, 0, sizeof(servaddr)); 116 servaddr.sin_family = AF_INET; 117 servaddr.sin_port = htons(PORTNUM); 119 if(INADDR_NONE == (servaddr.sin_addr.s_addr = inet_addr(IPADDR))) 122 if(connect(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr)) ==
|
/external/clang/tools/libclang/ |
H A D | CIndexCodeCompletion.cpp | 774 struct sockaddr_in servaddr; local 775 bzero(&servaddr, sizeof(servaddr)); 776 servaddr.sin_family = AF_INET; 777 servaddr.sin_port = htons(UDP_CODE_COMPLETION_LOGGER_PORT); 779 &servaddr.sin_addr) <= 0) 787 (struct sockaddr *)&servaddr, sizeof(servaddr));
|
/external/libmicrohttpd/src/microhttpd/ |
H A D | daemon.c | 3129 * @param servaddr where to store the server's listen address 3135 const struct sockaddr **servaddr, 3143 * @param servaddr where to store the server's listen address 3149 const struct sockaddr **servaddr, 3155 va_start (ap, servaddr); 3156 ret = parse_options_va (daemon, servaddr, ap); 3166 * @param servaddr where to store the server's listen address 3172 const struct sockaddr **servaddr, 3213 *servaddr = va_arg (ap, const struct sockaddr *); 3367 servaddr, 3148 parse_options(struct MHD_Daemon *daemon, const struct sockaddr **servaddr, ...) argument 3171 parse_options_va(struct MHD_Daemon *daemon, const struct sockaddr **servaddr, va_list ap) argument 3629 const struct sockaddr *servaddr = NULL; local [all...] |
Completed in 394 milliseconds