|
-
March 5th, 2003, 11:02 AM
#1
static functions
Hi*!
I am working on an application that sends/recives some data using winsock 2. I am doing that stuff (sending/reciving) in a class. The application should support multiple connections to the same server with different login and password. So i create multiple objects of my class. I am doing the recving of data in a worker thread. As with thread function they should be either static or global, i have made those thread functions static.
Now is it so that ONLY ONE instance of the static thread function exist for all of my classes objects????????? The application works fine but i tried with a LOCAL static var and that was same in all the objects of the class, i want to know is it the same in case of functions???
Thanks for your time.
Regards,
Usman.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|