49#include <sys/socket.h>
57#ifdef HAVE_SYS_FILIO_H
61#include <systemd/sd-daemon.h>
98 Log2(PCSC_LOG_CRITICAL,
"Accept on common socket: %s",
136 Log2(PCSC_LOG_CRITICAL,
"Unable to create common socket: %s",
143 strncpy(
sa.un.sun_path, PCSCLITE_CSOCK_NAME,
sizeof sa.un.sun_path);
148 Log2(PCSC_LOG_CRITICAL,
"Unable to bind common socket: %s",
155 Log2(PCSC_LOG_CRITICAL,
"Unable to listen common socket: %s",
185 Log1(PCSC_LOG_CRITICAL,
"Passed FD is not an UNIX socket");
207#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
242 Log2(PCSC_LOG_CRITICAL,
"Select returns with failure: %s",
256 Log1(PCSC_LOG_DEBUG,
"Common channel packet arrival");
260 "error in ProcessCommonChannelRequest: %d", *
pdwClientID);
268 "ProcessCommonChannelRequest detects: %d", *
pdwClientID);
This keeps a list of defines for pcsc-lite.
@ POWER_STATE_POWERED
powered
This handles smart card reader communications.
This defines some structures and #defines to be used over the transport layer.
INTERNAL int32_t InitializeSocket(void)
Prepares the communication channel used by the server to talk to the clients.
INTERNAL int32_t ProcessEventsServer(uint32_t *pdwClientID)
Looks for messages sent by clients.
static int ProcessCommonChannelRequest(uint32_t *pdwClientID)
Accepts a Client connection.
static int commonSocket
Socket to a file, used for clients-server communication.