Home
last modified time | relevance | path

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

/curl/docs/examples/
H A Dexternalsocket.c99 struct sockaddr_in servaddr; /* socket address structure */ in main() local
126 memset(&servaddr, 0, sizeof(servaddr)); in main()
127 servaddr.sin_family = AF_INET; in main()
128 servaddr.sin_port = htons(PORTNUM); in main()
130 servaddr.sin_addr.s_addr = inet_addr(IPADDR); in main()
131 if(INADDR_NONE == servaddr.sin_addr.s_addr) { in main()
136 if(connect(sockfd, (struct sockaddr *) &servaddr, sizeof(servaddr)) == in main()

Completed in 4 milliseconds