Class Smartcard::PCSC::IoRequest
In: ext/smartcard_pcsc/pcsc_card.c
Parent: Object

Protocol information used in Smartcard::PCSC::Card#transmit. Wraps a SCARD_IO_REQUEST structure.

I know the name is retarded, but it reflects the PC/SC name well. The choice makes sense given that this is an API meant for people familiar with the PC/SC specification.

Methods

new   protocol   protocol=  

Public Class methods

Creates an uninitialized IoRequest. The request can be used as a receiving IoRequest in Smartcard::PCSC::Card#transmit.

[Source]

/* :Document-method: new
 * call-seq:
 *      new() --> io_request
 * 
 * Creates an uninitialized IoRequest. 
 * The request can be used as a receiving IoRequest in Smartcard::PCSC::Card#transmit.
 */
static VALUE PCSC_IoRequest_initialize(VALUE self) {

Public Instance methods

The protocol of this instance.

The returned protocol is a number, and should be checked against one of the Smartcard::PCSC::PROTOCOL_ constants.

[Source]

/* :Document-method: protocol
 * call-seq:
 *      io_request.protocol --> protocol
 * 
 * The protocol of this instance.
 * 
 * The returned protocol is a number, and should be checked against one of the Smartcard::PCSC::PROTOCOL_ constants.
 */
static VALUE PCSC_IoRequest_get_protocol(VALUE self) {

Sets the protocol of this instance.

protocol:use one of the Smartcard::PCSC::PROTOCOL_ constants

[Source]

/* :Document-method: protocol=
 * call-seq:
 *      io_request.protocol = protocol
 * 
 * Sets the protocol of this instance.
 * 
 * +protocol+:: use one of the Smartcard::PCSC::PROTOCOL_ constants
 */
static VALUE PCSC_IoRequest_set_protocol(VALUE self, VALUE rbProtocol) {

[Validate]