Home » U++ Library support » U++ MT-multithreading and servers » A few questions about Skylark sessions
Re: A few questions about Skylark sessions [message #38724 is a reply to message #38723] |
Wed, 09 January 2013 13:43   |
|
Peter wrote on Wed, 09 January 2013 11:57 | I think currently I'm not advanced enough to add anything to U++ myself 
| That doesn't mean you can't try to do it Challenging tasks are the best learning experience...
Peter wrote on Wed, 09 January 2013 11:57 | I have another question though. Is it possible to pass Http parameter of Skylark handler by reference to another function called from that handler and use it there?
...
Is the above safe/guaranteed to work? Can I access variables associated with http object from within wrapper?
|
Yes, it works, there is nothing special about the Http class. I have done this and never had any problem with it. The only thing you need to keep in mind is that you should not store this reference anywhere (e.g. no asynchronous calls that might take too long). It's content is reset after the handler function exits (or it might be destroyed completely, I'm not sure from the top of my head), so it would have quite fatal consequences
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Sat May 10 21:32:34 CEST 2025
Total time taken to generate the page: 0.02790 seconds
|