Changes in uspace/lib/http/src/http.c [779541b:a62ceaf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/http/src/http.c
r779541b ra62ceaf 40 40 #include <macros.h> 41 41 42 #include <inet/dnsr.h> 42 #include <inet/endpoint.h> 43 #include <inet/host.h> 43 44 #include <inet/tcp.h> 44 45 … … 88 89 return EBUSY; 89 90 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 } 91 int rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL, 92 NULL); 93 if (rc != EOK) 94 return rc; 104 95 105 96 inet_ep2_t epp;
Note:
See TracChangeset
for help on using the changeset viewer.