nscp.c File Reference

#include "ns.h"

Data Structures

struct  Mod
struct  Sess

Defines

#define TN_IAC   255
#define TN_WILL   251
#define TN_WONT   252
#define TN_DO   253
#define TN_DONT   254
#define TN_EOF   236
#define TN_IP   244
#define TN_ECHO   1

Functions

int NsCp_ModInit (char *server, char *module)

Define Documentation

#define TN_DO   253

#define TN_DONT   254

#define TN_ECHO   1

#define TN_EOF   236

#define TN_IAC   255

The following values are sent to the telnet client to enable and disable password prompt echo.

#define TN_IP   244

#define TN_WILL   251

#define TN_WONT   252


Function Documentation

int NsCp_ModInit ( char *  server,
char *  module 
)

----------------------------------------------------------------------

NsCp_ModInit --

Load the config parameters, setup the structures, and listen on the control port.

Results: None.

Side effects: Server will listen for control connections on specified address and port.

----------------------------------------------------------------------

Create the listening socket and callback.

Create a new Mod structure for this instance.

Default to off

Initialize the hash table of authorized users. Entry values are either NULL indicating authorization should be checked via the Ns_AuthorizeUser() API or contain a Unix crypt(3) sytle encrypted password. For the later, the entry is compatible with /etc/passwd (i.e., username followed by password separated by colons).


Generated on Tue Sep 4 19:58:55 2007 by  doxygen 1.5.1