From 94d79f087ba4470dba5e9c9924f73b01499a0e88 Mon Sep 17 00:00:00 2001 From: 15 2003 Andrew Lanoix Date: Sat, 22 Nov 2003 19:28:04 +0000 Subject: [PATCH] Bind inter-thread comminication sockets to INADDR_LOOPBACK instead of Sat Nov 22 14:16:51.15 2003 Andrew Lanoix * glib/giowin32.c: Bind inter-thread comminication sockets to INADDR_LOOPBACK instead of INADDR_ANY. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/giowin32.c | 4 ++-- 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a5bd421..c57480c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Nov 22 14:16:51.15 2003 Andrew Lanoix + + * glib/giowin32.c: Bind inter-thread comminication + sockets to INADDR_LOOPBACK instead of INADDR_ANY. + Thu Nov 20 15:09:40 2003 Manish Singh * configure.in: Added G_GSIZE_FORMAT and friends. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index a5bd421..c57480c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Sat Nov 22 14:16:51.15 2003 Andrew Lanoix + + * glib/giowin32.c: Bind inter-thread comminication + sockets to INADDR_LOOPBACK instead of INADDR_ANY. + Thu Nov 20 15:09:40 2003 Manish Singh * configure.in: Added G_GSIZE_FORMAT and friends. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index a5bd421..c57480c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Sat Nov 22 14:16:51.15 2003 Andrew Lanoix + + * glib/giowin32.c: Bind inter-thread comminication + sockets to INADDR_LOOPBACK instead of INADDR_ANY. + Thu Nov 20 15:09:40 2003 Manish Singh * configure.in: Added G_GSIZE_FORMAT and friends. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index a5bd421..c57480c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Sat Nov 22 14:16:51.15 2003 Andrew Lanoix + + * glib/giowin32.c: Bind inter-thread comminication + sockets to INADDR_LOOPBACK instead of INADDR_ANY. + Thu Nov 20 15:09:40 2003 Manish Singh * configure.in: Added G_GSIZE_FORMAT and friends. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index a5bd421..c57480c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Sat Nov 22 14:16:51.15 2003 Andrew Lanoix + + * glib/giowin32.c: Bind inter-thread comminication + sockets to INADDR_LOOPBACK instead of INADDR_ANY. + Thu Nov 20 15:09:40 2003 Manish Singh * configure.in: Added G_GSIZE_FORMAT and friends. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index a5bd421..c57480c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Sat Nov 22 14:16:51.15 2003 Andrew Lanoix + + * glib/giowin32.c: Bind inter-thread comminication + sockets to INADDR_LOOPBACK instead of INADDR_ANY. + Thu Nov 20 15:09:40 2003 Manish Singh * configure.in: Added G_GSIZE_FORMAT and friends. diff --git a/glib/giowin32.c b/glib/giowin32.c index dde72e7..152c2c0 100644 --- a/glib/giowin32.c +++ b/glib/giowin32.c @@ -356,7 +356,7 @@ init_reset_sockets (GIOWin32Channel *channel) local.sin_family = AF_INET; local.sin_port = 0; - local.sin_addr.s_addr = htonl (INADDR_ANY); + local.sin_addr.s_addr = htonl (INADDR_LOOPBACK); if (bind (channel->reset_send, (struct sockaddr *)&local, sizeof (local)) == SOCKET_ERROR) { @@ -366,7 +366,7 @@ init_reset_sockets (GIOWin32Channel *channel) local2.sin_family = AF_INET; local2.sin_port = 0; - local2.sin_addr.s_addr = htonl (INADDR_ANY); + local2.sin_addr.s_addr = htonl (INADDR_LOOPBACK); channel->reset_recv = (gint) socket (AF_INET, SOCK_DGRAM, 0); if (channel->reset_recv == INVALID_SOCKET) -- 2.7.4