Lines Matching refs:sin
1262 struct sockaddr_in sin; in test_bufferevent_connect_hostname() local
1274 memset(&sin, 0, sizeof(sin)); in test_bufferevent_connect_hostname()
1275 sin.sin_family = AF_INET; in test_bufferevent_connect_hostname()
1276 sin.sin_addr.s_addr = htonl(0x7f000001); /* 127.0.0.1 */ in test_bufferevent_connect_hostname()
1277 sin.sin_port = 0; in test_bufferevent_connect_hostname()
1281 -1, (struct sockaddr *)&sin, sizeof(sin)); in test_bufferevent_connect_hostname()
2068 struct sockaddr_in sin; in test_getaddrinfo_async_cancel_stress() local
2076 memset(&sin, 0, sizeof(sin)); in test_getaddrinfo_async_cancel_stress()
2077 sin.sin_family = AF_INET; in test_getaddrinfo_async_cancel_stress()
2078 sin.sin_port = 0; in test_getaddrinfo_async_cancel_stress()
2079 sin.sin_addr.s_addr = htonl(0x7f000001); in test_getaddrinfo_async_cancel_stress()
2084 if (bind(fd, (struct sockaddr*)&sin, sizeof(sin))<0) { in test_getaddrinfo_async_cancel_stress()