pcsc-lite
1.8.8
|
This is the main pcscd daemon. More...
#include "config.h"
#include <time.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "misc.h"
#include "pcsclite.h"
#include "pcscd.h"
#include "debuglog.h"
#include "sd-daemon.h"
#include "winscard_msg.h"
#include "winscard_svc.h"
#include "sys_generic.h"
#include "hotplug.h"
#include "readerfactory.h"
#include "configfile.h"
#include "powermgt_generic.h"
#include "utils.h"
Go to the source code of this file.
Macros | |
#define | TRUE 1 |
#define | FALSE 0 |
#define | OPT_STRING "c:fTdhvaeCHt:r:s:x" |
Functions | |
static void | at_exit (void) |
static void | clean_temp_files (void) |
static void | signal_reload (int sig) |
static void | signal_trap (int) |
static void | print_version (void) |
static void | print_usage (char const *const) |
static void | SVCServiceRunLoop (void) |
The Server's Message Queue Listener function. More... | |
int | main (int argc, char **argv) |
Variables | |
char | AraKiri = FALSE |
static char | Init = TRUE |
char | AutoExit = FALSE |
Represents an Application Context on the Server side. More... | |
char | SocketActivated = FALSE |
static int | ExitValue = EXIT_FAILURE |
int | HPForceReaderPolling = 0 |
static int | pipefd [] = {-1, -1} |
This is the main pcscd daemon.
The function main()
starts up the communication environment.
Then an endless loop is calld to look for Client connections. For each Client connection a call to CreateContextThread()
is done.
Definition in file pcscdaemon.c.
|
static |
The Server's Message Queue Listener function.
An endless loop calls the function ProcessEventsServer()
to check for messages sent by clients. If the message is valid, CreateContextThread()
is called to serve this request.
Definition at line 81 of file pcscdaemon.c.
References CreateContextThread(), ProcessEventsServer(), SCARD_S_SUCCESS, and SYS_Sleep().
char AutoExit = FALSE |
Represents an Application Context on the Server side.
An Application Context contains Channels (hCard
).
Definition at line 57 of file pcscdaemon.c.
Referenced by CreateContextThread().