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

winscard_msg_srv.c File Reference


Detailed Description

client/server communication (on the server side only)

A file based socket (commonSocket) is used to send/receive only messages among clients and server.
The messages' data are passed throw a memory mapped file: sharedSegmentMsg.

Definition in file winscard_msg_srv.c.

#include "config.h"
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/un.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "misc.h"
#include "pcscd.h"
#include "winscard.h"
#include "debuglog.h"
#include "winscard_msg.h"
#include "sys_generic.h"

Go to the source code of this file.

Functions

INTERNAL int32_t SHMInitializeCommonSegment (void)
 Prepares the communication channel used by the server to talk to the clients.
static int SHMProcessCommonChannelRequest (uint32_t *pdwClientID)
 Accepts a Client connection.
INTERNAL int32_t SHMProcessEventsContext (uint32_t dwClientID, psharedSegmentMsg msgStruct)
 Called by ContextThread().
INTERNAL int32_t SHMProcessEventsServer (uint32_t *pdwClientID)
 Looks for messages sent by clients.

Variables

char AraKiri
static const char * CommandsText []
static int commonSocket = 0
char ReCheckSerialReaders


Generated by  Doxygen 1.6.0   Back to index