Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Peter wrote on Wed, 09 January 2013 11:57

I think currently I'm not advanced enough to add anything to U++ myself Smile
That doesn't mean you can't try to do it Wink 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 Smile

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Web] using of an uninitialized value in expression
Next Topic: Something wrong with post_identity()?
Goto Forum:
  


Current Time: Sat May 10 21:32:34 CEST 2025

Total time taken to generate the page: 0.02790 seconds