Home | History | Annotate | Download | only in libevent

Lines Matching full:connect_addr

212 	struct sockaddr_in connect_addr;
247 size = sizeof(connect_addr);
248 if (getsockname(listener, (struct sockaddr *) &connect_addr, &size) == -1)
250 if (size != sizeof (connect_addr))
252 if (connect(connector, (struct sockaddr *) &connect_addr,
253 sizeof(connect_addr)) == -1)
264 if (getsockname(connector, (struct sockaddr *) &connect_addr, &size) == -1)
266 if (size != sizeof (connect_addr)
267 || listen_addr.sin_family != connect_addr.sin_family
268 || listen_addr.sin_addr.s_addr != connect_addr.sin_addr.s_addr
269 || listen_addr.sin_port != connect_addr.sin_port)