From cccf76cfdf65fbd2ca1544f4ff34b758c5225951 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 24 May 2011 07:49:41 -0500 Subject: test-server: Remove legacy code The previous thinking was to use the PPP stack to send Conf-Naks with some delay to client requests until the IP configuration was setup correctly. However, we now hide this by using the delay during the processing of the ATD. This code is no longer relevant. --- gatchat/test-server.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'gatchat/test-server.c') diff --git a/gatchat/test-server.c b/gatchat/test-server.c index 21d3a6b2..33372c8a 100644 --- a/gatchat/test-server.c +++ b/gatchat/test-server.c @@ -151,16 +151,6 @@ static void ppp_disconnect(GAtPPPDisconnectReason reason, gpointer user) data_mode = FALSE; } -static gboolean update_ppp(gpointer user) -{ - GAtPPP *ppp = user; - - g_at_ppp_set_server_info(ppp, "192.168.1.2", - "10.10.10.10", "10.10.10.11"); - - return FALSE; -} - static void setup_ppp(gpointer user) { GAtServer *server = user; @@ -184,8 +174,8 @@ static void setup_ppp(gpointer user) /* set connect and disconnect callbacks */ g_at_ppp_set_connect_function(ppp, ppp_connect, server); g_at_ppp_set_disconnect_function(ppp, ppp_disconnect, server); - - g_idle_add(update_ppp, ppp); + g_at_ppp_set_server_info(ppp, "192.168.1.2", + "10.10.10.10", "10.10.10.11"); } static void cgmi_cb(GAtServer *server, GAtServerRequestType type, -- cgit v1.2.3