bladox.com Forum Index bladox.com
Turbo SIM Toolkit Adapter Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

select() question

 
Post new topic   Reply to topic    bladox.com Forum Index -> Development
View previous topic :: View next topic  
Author Message
asciz
Guest





PostPosted: Wed Mar 22, 2006 4:32 pm    Post subject: select() question Reply with quote

Hi, a couple questions about the select() function:

- Should the parameter path_len be number of files in the path or number of bytes in the array containing the path?

- Does the return value (u16) contain SW1 and SW2?

- Where does the SIM response end up?

- Should I call select(0,0) even if my select call fails if e.g. the file does not exist?

While I'm at it, is there a function for reading records from a file? No probs if not, will then use sim() but thought maybe it had been added.


Appologies if I'm asking stuff that's in the documentation, but I couldn't find it.

Many thanks
Back to top
pz
Guest





PostPosted: Thu Mar 23, 2006 5:42 pm    Post subject: Re: select() question Reply with quote

asciz wrote:
Hi, a couple questions about the select() function:

- Should the parameter path_len be number of files in the path or number of bytes in the array containing the path?


Number of files, i.e. bytes/2.

Quote:

- Does the return value (u16) contain SW1 and SW2?


Yes.

Quote:

- Where does the SIM response end up?


Do you mean of sim() call? In the buffer - last arg.

Quote:

- Should I call select(0,0) even if my select call fails if e.g. the file does not exist?


Yes, this is necessary. It's somewhere in 11.11 or so.

Quote:

While I'm at it, is there a function for reading records from a file? No probs if not, will then use sim() but thought maybe it had been added.



No, you have to use sim(). In fact such call would be just renamed sim() without first arg.

Quote:


Appologies if I'm asking stuff that's in the documentation, but I couldn't find it.

Many thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    bladox.com Forum Index -> Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group