Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

connection.h File Reference

Connection-related functions. More...

Go to the source code of this file.

Enumerations

Functions


Detailed Description

Connection-related functions.

The module connection contains data types and functions which are used idn socket-based connections. A connection consists of a file descriptor and an authentication status. The authentication status is true (=1) if a password authentication was successful within this connection. Password authentication may or may not be needed, depending on the operation (read/write) and the configuration (see AuthMode).


Enumeration Type Documentation

enum AuthMode
 

Authentication mode.

The authentication mode says when password authentication is needed. Autoproc knows three modes: no authentication, authentication required for active operations, and authentication always required.

Enumeration values:
AP_AUTH_NONE  No Authentication required.
AP_AUTH_CHANGE  Authentication required for changing process states.
AP_AUTH_ALL  Authentication required for all operations.


Function Documentation

int connection_check_auth_level ConnectionData cd,
int  level
 

Check for correct authentication.

This function returns 1 if either this connection has been authenticated or no authentication is needed for the given level.

void connection_print ConnectionData cd,
const char *  msg
 

Prints a message to a connection's file desciptor.

Parameters:
cd Connection data.
msg Message.

void connection_println ConnectionData cd,
const char *  msg
 

Prints a message to a connection's file desciptor.

Parameters:
cd Connection data.
msg Message.


Generated on Fri Jan 20 10:12:18 2006 by  doxygen 1.4.2