Searched refs:their_addr (Results 1 – 2 of 2) sorted by relevance
27 struct sockaddr_in their_addr; in main() local49 memset(&their_addr, 0, sizeof(their_addr)); in main()50 their_addr.sin_family = AF_INET; in main()51 their_addr.sin_port = htons(port); in main()52 their_addr.sin_addr = *((struct in_addr *)he->h_addr); in main()54 if (connect(sockfd, (struct sockaddr *)&their_addr, sizeof(struct sockaddr)) == -1) { in main()
37 struct sockaddr_in their_addr; // connector's address information in main() local87 if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size)) == -1) { in main()91 printf("server: got connection from %s\n", inet_ntoa(their_addr.sin_addr)); in main()131 printf("%s:| %s", inet_ntoa(their_addr.sin_addr), buf); in main()