server/main.cpp File Reference


Functions

void GetUserDisconnect (QString variable)
void GetUserSend (QString variable)
int main (int argc, char *argv[])
int pem_passwd_cb (char *buf, int size, int rwflag, void *password)
void readConfigFile ()
void signal_handler (int)
void unsupported_options (char *erreur, const QString &usage)
 command line error
bool validatePort (const int &port)

Variables

QStringList AllowUserDisconnect
 Allow client to disconnect user.
QStringList AllowUserSendMsg
 Allow client to send message.
QString Certificat = "/etc/qtsmbstatusd/server.pem"
bool daemonize = false
Servermyserver
QString Private_key = "/etc/qtsmbstatusd/privkey.pem"
SSL_CTX * ssl_ctx
QString ssl_password = "password"

Function Documentation

void GetUserDisconnect ( QString  variable  ) 

Add user to a list

Parameters:
variable username
See also:
AllowUserDisconnect

References AllowUserDisconnect.

Referenced by readConfigFile().

void GetUserSend ( QString  variable  ) 

Add user to a list

Parameters:
variable username
See also:
AllowUserSendMsg

References AllowUserSendMsg.

Referenced by readConfigFile().

int main ( int  argc,
char *  argv[] 
)

int pem_passwd_cb ( char *  buf,
int  size,
int  rwflag,
void *  password 
)

password callback for ssl key usage

References ssl_password.

Referenced by main().

void readConfigFile (  ) 

void signal_handler ( int   ) 

Receive SIGTERM, SIGINT or SIGQUIT signal

Referenced by main().

void unsupported_options ( char *  erreur,
const QString &  usage 
)

command line error

bool validatePort ( const int &  port  ) 

Test if TCP port is valid

Parameters:
port port number
Return values:
true TCP port is valid
false TCP port is not valid


Variable Documentation

QStringList AllowUserDisconnect

Allow client to disconnect user.

Referenced by ClientSocket::CmdAuthRq(), and GetUserDisconnect().

QStringList AllowUserSendMsg

Allow client to send message.

Referenced by ClientSocket::CmdAuthRq(), and GetUserSend().

QString Certificat = "/etc/qtsmbstatusd/server.pem"

Referenced by main(), and readConfigFile().

bool daemonize = false

Referenced by main(), and Server::Server().

QString Private_key = "/etc/qtsmbstatusd/privkey.pem"

Referenced by main(), and readConfigFile().

SSL_CTX* ssl_ctx

Referenced by ClientSocket::ClientSocket(), and main().

QString ssl_password = "password"

Referenced by pem_passwd_cb(), and readConfigFile().


Generated on Thu Nov 6 20:49:44 2008 for qtsmbstatus.kdevelop by  doxygen 1.5.5