Home | History | Annotate | Download | only in libcutils

Lines Matching refs:address

38     // First resolve the host and port parameters into a usable network address.
43 struct addrinfo* address = NULL;
46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) {
47 if (address != NULL) {
48 freeaddrinfo(address);
54 SOCKET sock = socket(address->ai_family, address->ai_socktype,
55 address->ai_protocol);
57 freeaddrinfo(address);
61 if (connect(sock, address->ai_addr, address->ai_addrlen) == SOCKET_ERROR) {
63 freeaddrinfo(address);
67 freeaddrinfo(address);