Logo Search packages:      
Sourcecode: pcsc-lite version File versions

pcscdaemon.c File Reference


Detailed Description

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.

#include "config.h"
#include <time.h>
#include <syslog.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 "winscard_msg.h"
#include "winscard_svc.h"
#include "sys_generic.h"
#include "thread_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.

Defines

#define FALSE   0
#define OPT_STRING   "c:fdhvaeCH"
#define TRUE   1

Functions

void at_exit (void)
void clean_temp_files (void)
int main (int argc, char **argv)
void print_usage (char const *const)
void print_version (void)
int SendHotplugSignal (void)
void signal_reload (int sig)
void signal_trap (int)
void SVCClientCleanup (psharedSegmentMsg)
void SVCServiceRunLoop (void)
 The Server's Message Queue Listener function.

Variables

char AraKiri = FALSE
int HPForceReaderPolling = 0
static char Init = TRUE
PCSCLITE_MUTEX usbNotifierMutex


Generated by  Doxygen 1.6.0   Back to index