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

Classes | Defines | Enumerations | Functions

winscard_msg.h File Reference

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

#include <stdint.h>
Include dependency graph for winscard_msg.h:
This graph shows which files directly or indirectly include this file:

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  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  rxHeader
 header structure for client/server message data exchange. More...
struct  status_struct
 contained in SCARD_STATUS Messages. More...
struct  transmit_struct
 contained in SCARD_TRANSMIT Messages. More...
struct  version_struct
 Information transmitted in CMD_VERSION Messages. More...
struct  wait_reader_state_change
 Information contained in CMD_WAIT_READER_STATE_CHANGE Messages. More...

Defines

#define PROTOCOL_VERSION_MAJOR   4
#define PROTOCOL_VERSION_MINOR   2

Enumerations

enum  pcsc_msg_commands {
  CMD_ENUM_FIRST, 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, CMD_VERSION = 0x11, CMD_GET_READERS_STATE = 0x12, CMD_WAIT_READER_STATE_CHANGE = 0x13,
  CMD_STOP_WAITING_READER_STATE_CHANGE = 0x14, CMD_ENUM_LAST
}
 

Commands available to use in the field sharedSegmentMsg.command.

More...

Functions

int32_t ClientCloseSession (uint32_t)
 Closes the socket used by the client to communicate with the server.
int32_t ClientSetupSession (uint32_t *)
 Prepares a communication channel for the client to talk to the server.
char * getSocketName (void)
LONG MessageReceive (void *buffer, uint64_t buffer_size, int32_t filedes)
 Called by the Client to get the reponse from the server or vice-versa.
LONG MessageReceiveTimeout (uint32_t command, void *buffer, uint64_t buffer_size, int32_t filedes, unsigned long timeOut)
 Called by the Client to get the reponse from the server or vice-versa.
LONG MessageSend (void *buffer, uint64_t buffer_size, int32_t filedes)
 Sends a menssage from client to server or vice-versa.
LONG MessageSendWithHeader (uint32_t command, uint32_t dwClientID, uint64_t size, void *data)
 Wrapper for the MessageSend() function.

Detailed Description

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

Definition in file winscard_msg.h.


Generated by  Doxygen 1.6.0   Back to index