[gnio] Rename backlog property to listen-backlog
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnio] Rename backlog property to listen-backlog
- Date: Tue, 28 Apr 2009 06:08:50 -0400 (EDT)
commit 08fa91e73f07c78cec051baf73f6d0f0b0024150
Author: Alexander Larsson <alexl redhat com>
Date: Tue Apr 28 10:35:07 2009 +0200
Rename backlog property to listen-backlog
---
gio/gsocket.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/gio/gsocket.c b/gio/gsocket.c
index 31270e0..b63be17 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -55,7 +55,7 @@ enum
PROP_TYPE,
PROP_FD,
PROP_BLOCKING,
- PROP_BACKLOG,
+ PROP_LISTEN_BACKLOG,
PROP_REUSE_ADDRESS,
PROP_LOCAL_ADDRESS,
PROP_REMOTE_ADDRESS
@@ -67,7 +67,7 @@ struct _GSocketPrivate
GSocketType type;
gint fd;
gboolean blocking;
- gint backlog;
+ gint listen_backlog;
gboolean reuse_address;
GError *construct_error;
GSocketAddress *local_address;
@@ -294,8 +294,8 @@ g_socket_get_property (GObject *object,
g_value_set_boolean (value, socket->priv->blocking);
break;
- case PROP_BACKLOG:
- g_value_set_int (value, socket->priv->backlog);
+ case PROP_LISTEN_BACKLOG:
+ g_value_set_int (value, socket->priv->listen_backlog);
break;
case PROP_REUSE_ADDRESS:
@@ -341,8 +341,8 @@ g_socket_set_property (GObject *object,
g_socket_set_blocking (socket, g_value_get_boolean (value));
break;
- case PROP_BACKLOG:
- socket->priv->backlog = g_value_get_int (value);
+ case PROP_LISTEN_BACKLOG:
+ socket->priv->listen_backlog = g_value_get_int (value);
break;
case PROP_REUSE_ADDRESS:
@@ -438,8 +438,8 @@ g_socket_class_init (GSocketClass *klass)
TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
- g_object_class_install_property (gobject_class, PROP_BACKLOG,
- g_param_spec_int ("backlog",
+ g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG,
+ g_param_spec_int ("listen-backlog",
"listen backlog",
"outstanding connections in the listen queue",
0,
@@ -476,7 +476,7 @@ g_socket_init (GSocket *socket)
socket->priv->fd = -1;
socket->priv->blocking = TRUE;
- socket->priv->backlog = 10;
+ socket->priv->listen_backlog = 10;
socket->priv->reuse_address = FALSE;
socket->priv->construct_error = NULL;
socket->priv->remote_address = NULL;
@@ -630,7 +630,7 @@ g_socket_listen (GSocket *socket,
if (!check_socket (socket, error))
return FALSE;
- if (listen (socket->priv->fd, socket->priv->backlog) < 0)
+ if (listen (socket->priv->fd, socket->priv->listen_backlog) < 0)
{
int errsv = errno;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]