• Radostin Stoyanov's avatar
    util: Enable hostname resolution in tcp_client · a7c384f6
    Radostin Stoyanov authored
    Add hostname resolution in setup_tcp_client(). This change allows a
    valid hostname to be provided as value for --address option when
    connecting to page server.
    
    This change is needed for the following path which removes
    setup_TCP_client_socket() from img-proxy.c. In this function the
    hostname resolution was implemented using gethostbyname()
    
    However, here we use `getaddrinfo` instead because gethostbyname() is
    marked obsolescent in POSIX.1-2001 and is removed in POSIX.1-2008
    specifications.
    Signed-off-by: 's avatarRadostin Stoyanov <rstoyanov1@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    a7c384f6
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...