Searched refs:my_addr (Results 1 – 1 of 1) sorted by relevance
36 struct sockaddr_in my_addr; // my address information in main() local57 memset(&my_addr, 0, sizeof(my_addr)); in main()58 my_addr.sin_family = AF_INET; in main()59 my_addr.sin_port = htons(port); in main()60 my_addr.sin_addr.s_addr = INADDR_ANY; // automatically fill with my IP in main()62 if (bind(sockfd, (struct sockaddr *)&my_addr, sizeof(struct sockaddr)) == -1) { in main()