Commit cd573e5f authored by Per Cederqvist's avatar Per Cederqvist

(listen_mux): Removed.

(server_init): Remved the "mux_port" argument.  Don't listen for muxes.
(initialize): Don't pass the "mux_port" argument to server_init.
parent 2dc713f2
/*
* $Id: ramkomd.c,v 0.80 1999/04/19 20:13:00 ceder Exp $
* $Id: ramkomd.c,v 0.81 1999/04/28 22:13:29 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -44,7 +44,7 @@
#endif
static const char *
rcsid = "$Id: ramkomd.c,v 0.80 1999/04/19 20:13:00 ceder Exp $";
rcsid = "$Id: ramkomd.c,v 0.81 1999/04/28 22:13:29 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -121,13 +121,12 @@ int buglevel = 0;
#endif
static IscSession *listen_client = NULL; /* ISC listen identifier */
static IscSession *listen_mux = NULL; /* -"- */
static void dump_exit_statistics(void);
static void free_kom_info(void);
static void
server_init(const char *host, const char * client_port, const char * mux_port)
server_init(const char *host, const char * client_port)
{
IscConfig config;
IscAddress *isc_adr = NULL;
......@@ -164,22 +163,9 @@ server_init(const char *host, const char * client_port, const char * mux_port)
if (isc_adr == NULL)
restart_kom("server_init(): can't isc_getladdress (listen_client)\n");
param.num_ip_client_port = isc_getportnum (isc_adr);
log("Listening for clients on %d.\n", isc_getportnum(isc_adr));
isc_freeaddress (isc_adr);
listen_mux = isc_listentcp (kom_server_mcb, host, mux_port);
if (listen_mux == NULL)
restart_kom("server_init: can't isc_listentcp(MUX)\n");
isc_adr = isc_getladdress (listen_mux);
if (isc_adr == NULL)
restart_kom("server_init(): can't isc_getladdress (listen_mux)\n");
param.num_ip_mux_port = isc_getportnum (isc_adr);
isc_freeaddress (isc_adr);
log("Listening for clients on %d and muxes on %d.\n",
param.num_ip_client_port, param.num_ip_mux_port);
/*
* Ignore SIGPIPE, which the server gets if it tries to write to a
......@@ -432,7 +418,7 @@ initialize(const char *config_file)
#endif
go_daemon();
server_init(param.ip_client_host, param.ip_client_port, param.ip_mux_port);
server_init(param.ip_client_host, param.ip_client_port);
init_data_base();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment