]> git.tuebingen.mpg.de Git - paraslash.git/commit
Introduce tcp_connect().
authorAndre Noll <maan@systemlinux.org>
Sun, 25 Nov 2007 12:36:37 +0000 (13:36 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 25 Nov 2007 12:36:37 +0000 (13:36 +0100)
commite1890028c21d233087266fd7997d68a88cb9afce
treea1a16831b605727fdb62baf6de4895f6a85084c7
parent02649835488d8ca1b3fd5d682ffcff8649da09c9
Introduce tcp_connect().

This replaces get_host_info(). The two callers of the latter,
client_connect() and http_recv_open(), did exactly the same, namely
initializing a struct sockaddr_in which was then used for PARA_CONNECT().

So move this common code to tcp_connect(). Additional benefit of this
is that the only remaining callers of init_sockaddr() are in net.c, so
make this function static.
client_common.c
error.h
http_recv.c
net.c
net.h