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 |
Server * | myserver |
QString | Private_key = "/etc/qtsmbstatusd/privkey.pem" |
SSL_CTX * | ssl_ctx |
QString | ssl_password = "password" |
void GetUserDisconnect | ( | QString | variable | ) |
Add user to a list
variable | username |
References AllowUserDisconnect.
Referenced by readConfigFile().
void GetUserSend | ( | QString | variable | ) |
Add user to a list
variable | username |
References AllowUserSendMsg.
Referenced by readConfigFile().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
References Certificat, smbmanager::compteur_objet, Sendmessage_manager::compteur_objet, process_smbd_exist::compteur_objet, PamThread::compteur_objet, disconnect_manager::compteur_objet, ClientSocket::compteur_objet, daemonize, debug_qtsmbstatus, debugQt(), exit, pem_passwd_cb(), port_server, Private_key, readConfigFile(), signal_handler(), ssl_ctx, unsupported_options(), validatePort(), and version_qtsmbstatus.
int pem_passwd_cb | ( | char * | buf, | |
int | size, | |||
int | rwflag, | |||
void * | password | |||
) |
void readConfigFile | ( | ) |
Read configuration file
References Certificat, GetUserDisconnect(), GetUserSend(), port_server, Private_key, ssl_password, and validatePort().
Referenced by configure_windows::configure_windows(), and main().
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
port | port number |
true | TCP port is valid | |
false | TCP port is not valid |
QStringList AllowUserDisconnect |
QStringList AllowUserSendMsg |
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().