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

winscard_msg.h File Reference


Detailed Description

This defines some structures and #defines to be used over the transport layer.

Definition in file winscard_msg.h.

#include <stdint.h>

Go to the source code of this file.

Classes

struct  begin_struct
 contained in SCARD_BEGIN_TRANSACTION Messages. More...
struct  cancel_struct
 contained in SCARD_CANCEL Messages. More...
struct  client_struct
struct  connect_struct
 contained in SCARD_CONNECT Messages. More...
struct  control_struct
 contained in SCARD_CONTROL Messages. More...
struct  control_struct_extended
 contained in SCARD_CONTROL_EXTENDED Messages. More...
struct  disconnect_struct
 contained in SCARD_DISCONNECT Messages. More...
struct  end_struct
 contained in SCARD_END_TRANSACTION Messages. More...
struct  establish_struct
 Information contained in SCARD_ESTABLISH_CONTEXT Messages. More...
struct  getset_struct
 contained in SCARD_GET_ATTRIB and Messages. More...
struct  reconnect_struct
 contained in SCARD_RECONNECT Messages. More...
struct  release_struct
 Information contained in SCARD_RELEASE_CONTEXT Messages. More...
struct  rxSharedSegment
 General structure for client/serve message data exchange. More...
struct  status_struct
 contained in SCARD_STATUS Messages. More...
struct  transmit_struct
 contained in SCARD_TRANSMIT Messages. More...
struct  transmit_struct_extended
 contained in SCARD_TRANSMIT_EXTENDED Messages. More...
struct  version_struct
 Information transmitted in CMD_VERSION Messages. More...

Defines

#define PROTOCOL_VERSION_MAJOR   3
#define PROTOCOL_VERSION_MINOR   0

Typedefs

typedef struct begin_struct begin_struct
typedef struct cancel_struct cancel_struct
typedef struct client_struct client_struct
typedef struct connect_struct connect_struct
typedef struct control_struct control_struct
typedef struct
control_struct_extended 
control_struct_extended
typedef struct disconnect_struct disconnect_struct
typedef struct end_struct end_struct
typedef struct establish_struct establish_struct
typedef struct getset_struct getset_struct
typedef struct rxSharedSegmentpsharedSegmentMsg
typedef struct reconnect_struct reconnect_struct
typedef struct release_struct release_struct
typedef struct rxSharedSegment sharedSegmentMsg
 General structure for client/serve message data exchange.
typedef struct status_struct status_struct
typedef struct transmit_struct transmit_struct
typedef struct
transmit_struct_extended 
transmit_struct_extended
typedef struct version_struct version_struct

Enumerations

enum  pcsc_adm_commands {
  CMD_FUNCTION = 0xF1, CMD_FAILED = 0xF2, CMD_SERVER_DIED = 0xF3, CMD_CLIENT_DIED = 0xF4,
  CMD_READER_EVENT = 0xF5, CMD_SYN = 0xF6, CMD_ACK = 0xF7, CMD_VERSION = 0xF8
}
enum  pcsc_msg_commands {
  SCARD_ESTABLISH_CONTEXT = 0x01, SCARD_RELEASE_CONTEXT = 0x02, SCARD_LIST_READERS = 0x03, SCARD_CONNECT = 0x04,
  SCARD_RECONNECT = 0x05, SCARD_DISCONNECT = 0x06, SCARD_BEGIN_TRANSACTION = 0x07, SCARD_END_TRANSACTION = 0x08,
  SCARD_TRANSMIT = 0x09, SCARD_CONTROL = 0x0A, SCARD_STATUS = 0x0B, SCARD_GET_STATUS_CHANGE = 0x0C,
  SCARD_CANCEL = 0x0D, SCARD_CANCEL_TRANSACTION = 0x0E, SCARD_GET_ATTRIB = 0x0F, SCARD_SET_ATTRIB = 0x10,
  SCARD_TRANSMIT_EXTENDED = 0x11, SCARD_CONTROL_EXTENDED = 0x12
}
 Commands available to use in the field sharedSegmentMsg.command. More...

Functions

void SHMCleanupSharedSegment (int32_t, const char *)
int32_t SHMClientCloseSession (uint32_t)
 Closes the socket used by the client to communicate with the server.
int32_t SHMClientRead (psharedSegmentMsg, uint32_t, int32_t)
 Wrapper for the SHMMessageReceive() function.
int32_t SHMClientSetupSession (uint32_t *)
 Prepares a communication channel for the client to talk to the server.
int32_t SHMInitializeCommonSegment (void)
 Prepares the communication channel used by the server to talk to the clients.
int32_t SHMMessageReceive (void *buffer, uint64_t buffer_size, int32_t filedes, int32_t blockAmount)
 Called by the Client to get the reponse from the server or vice-versa.
int32_t SHMMessageSend (void *buffer, uint64_t buffer_size, int32_t filedes, int32_t blockAmount)
 Sends a menssage from client to server or vice-versa.
int32_t SHMProcessEventsContext (uint32_t, psharedSegmentMsg)
 Called by ContextThread().
int32_t SHMProcessEventsServer (uint32_t *)
 Looks for messages sent by clients.
int32_t WrapSHMWrite (uint32_t command, uint32_t dwClientID, uint64_t size, uint32_t blockAmount, void *data)
 Wrapper for the SHMMessageSend() function.


Generated by  Doxygen 1.6.0   Back to index