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

INTERNAL LONG MessageSendWithHeader ( uint32_t  command,
uint32_t  dwClientID,
uint64_t  size,
void *  data_void 
)

Wrapper for the MessageSend() function.

Called by clients to send messages to the server. The parameters command and data are set in the sharedSegmentMsg struct in order to be sent.

Parameters:
[in]commandCommand to be sent.
[in]dwClientIDClient socket handle.
[in]sizeSize of the message (data).
[in]data_voidData to be sent.
Returns:
Same error codes as MessageSend().

Definition at line 281 of file winscard_msg.c.

References rxHeader::command, MessageSend(), and rxHeader::size.

Referenced by SCardBeginTransaction(), SCardCancel(), SCardConnect(), SCardControl(), SCardDisconnect(), SCardEndTransaction(), SCardEstablishContextTH(), SCardGetStatusChange(), SCardReconnect(), SCardReleaseContext(), SCardStatus(), and SCardTransmit().

{
      struct rxHeader header;
      LONG ret;

      /* header */
      header.command = command;
      header.size = size;
      ret = MessageSend(&header, sizeof(header), dwClientID);

      /* command */
      if (size > 0)
            ret = MessageSend(data_void, size, dwClientID);

      return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index