Read socket state in g_socket_get_local/remote_address
authorAlexander Larsson <alexl@redhat.com>
Tue, 19 May 2009 08:40:27 +0000 (10:40 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 19 May 2009 08:40:27 +0000 (10:40 +0200)
commit69130db81a0b174bb072f458e8c1b1cd6bc1a0c9
tree234d1217a064060732017ff1e9698f219ef2f72c
parentf8cd1c530488c0b56634fab049ac775d094e9e58
Read socket state in g_socket_get_local/remote_address

Previously we saved the location in various places which is unnecessary
and sometimes even wrong. For instance, we saved the address we bound to
which may not have the final port set.
gio/gsocket.c
gio/gsocketconnection.c
gio/tests/socket-server.c