/* send message to server */
msg.message = Message::MSG_REQUEST_CLOSE_CHANNEL;
- msg.param1 = (int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
if (getSession()->getReader()->isSecureElementPresent() == true)
{
Message msg;
-
channelNum = -1;
/* send message to server */
msg.message = Message::MSG_REQUEST_CLOSE_CHANNEL;
- msg.param1 = (int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userParam;
throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
{
int rv = -1;
-
if (getSession()->getReader()->isSecureElementPresent() == true)
{
Message msg;
#ifdef CLIENT_IPC_THREAD
/* send message to server */
msg.message = Message::MSG_REQUEST_TRANSMIT;
- msg.param1 = (int)handle;
+ msg.param1 = (unsigned long)handle;
msg.param2 = 0;
msg.data = command;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
/* send message to server */
msg.message = Message::MSG_REQUEST_TRANSMIT;
- msg.param1 = (int)handle;
+ msg.param1 = (unsigned long)handle;
msg.param2 = 0;
msg.data = command;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userParam;
#ifdef CLIENT_IPC_THREAD
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_OPEN_SESSION;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_OPEN_SESSION;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userData;
Message msg;
msg.message = Message::MSG_REQUEST_SHUTDOWN;
- msg.error = (unsigned int)this; /* using error to context */
+ msg.error = (unsigned long)this; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)NULL;
Message msg;
msg.message = Message::MSG_REQUEST_SHUTDOWN;
- msg.error = (unsigned int)this; /* using error to context */
+ msg.error = (unsigned long)this; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
ByteArray Session::getATRSync() throw (ErrorIO &, ErrorIllegalState &)
{
ByteArray result;
-
if (getReader()->isSecureElementPresent() == true)
{
if (atr.isEmpty() == true)
#ifdef CLIENT_IPC_THREAD
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_GET_ATR;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
{
Message msg;
- /* request channel handle from server */
+
+ /* request channel handle from server */
msg.message = Message::MSG_REQUEST_GET_ATR;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userData;
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_CLOSE_SESSION;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_CLOSE_SESSION;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userData;
Message msg;
int rv;
+
#ifdef CLIENT_IPC_THREAD
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_GET_CHANNEL_COUNT;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
{
Message msg;
+
msg.message = Message::MSG_REQUEST_GET_CHANNEL_COUNT;
- msg.param1 = (unsigned int)handle;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.param1 = (unsigned long)handle;
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userData;
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_OPEN_CHANNEL;
msg.param1 = id;
- msg.param2 = (unsigned int)handle;
+ msg.param2 = (unsigned long)handle;
msg.data = aid;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)this; /* if callback is class instance, it means synchronized call */
/* request channel handle from server */
msg.message = Message::MSG_REQUEST_OPEN_CHANNEL;
msg.param1 = id;
- msg.param2 = (unsigned int)handle;
+ msg.param2 = (unsigned long)handle;
msg.data = aid;
- msg.error = (unsigned int)context; /* using error to context */
+ msg.error = (unsigned long)context; /* using error to context */
msg.caller = (void *)this;
msg.callback = (void *)callback;
msg.userParam = userData;
static const int MSG_OPERATION_RELEASE_CLIENT = 0xC0;
unsigned int message;
- unsigned int param1;
- unsigned int param2;
+ unsigned long param1;
+ unsigned long param2;
ByteArray data;
- int error;
+ long error;
void *caller;
void *callback;
void *userParam;
}
/* create service */
- if (resource->getService(socket, (unsigned int)msg->userParam) == NULL)
+ if (resource->getService(socket, (unsigned long)msg->userParam) == NULL)
{
- if (resource->createService(socket, (unsigned int)msg->userParam) == true)
+ if (resource->createService(socket, (unsigned long)msg->userParam) == true)
{
- SCARD_DEBUG_ERR("client added : context [%d]", (unsigned int)msg->userParam);
+ SCARD_DEBUG_ERR("client added : context [%d]", (unsigned long)msg->userParam);
}
else
{