Changes in uspace/lib/http/src/http.c [a62ceaf:779541b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/http/src/http.c
ra62ceaf r779541b 40 40 #include <macros.h> 41 41 42 #include <inet/endpoint.h> 43 #include <inet/host.h> 42 #include <inet/dnsr.h> 44 43 #include <inet/tcp.h> 45 44 … … 89 88 return EBUSY; 90 89 91 int rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL, 92 NULL); 93 if (rc != EOK) 94 return rc; 90 /* Interpret as address */ 91 int rc = inet_addr_parse(http->host, &http->addr); 92 93 if (rc != EOK) { 94 /* Interpret as a host name */ 95 dnsr_hostinfo_t *hinfo = NULL; 96 rc = dnsr_name2host(http->host, &hinfo, ip_any); 97 98 if (rc != EOK) 99 return rc; 100 101 http->addr = hinfo->addr; 102 dnsr_hostinfo_destroy(hinfo); 103 } 95 104 96 105 inet_ep2_t epp;
Note:
See TracChangeset
for help on using the changeset viewer.