Hello Guys,
I am new to this forum and this is my first post. Please help!!!
Here is my scenario.
I am creating a tcp listener which will be listening for multiple clients. Once it gets the connection from any client(s) listener will send query to it and after getting response back it will store into the database. the client(s) will always remain connected so my listeners job will be to wait for specific time(each client may have different timer interval. some may have in minutes and some may have in hours) and resend query back to client(s). How can I achieve this using threading?
Please let me know.
Thanks in advance,
Chaitu18
krishna vPosted Sep 14, 2010, 2:01 AM
or create ur own delegates to get the job done..and call .BeginInvoke / EndInvoke to handle them properly.
rather creating many background threads, try using threadpool threads, where above will create thread pool threads.
Bechir BejaouiPosted Sep 10, 2010, 2:10 PM
Make use of System.Threading.Timer class
http://msdn.microsoft.com/en-us/library/system.threading.timer.aspx