TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anushka thialkarathne
NA
15
0
Handle multiple clients with threads
Jul 6 2007 5:20 AM
Hi all c# expers. Im developing a client server application.when the clients are connected to the server , i want them to be handled separately by server. I have the client connected() ,isdatareceived (), & other functions that perform file uploading for the client. I want to create threads when a client is connected to the server. and separately handle it. when a client is connected to the server, the server will check it's IP address & send update file by selecting it from a database.( IP is the primary key). server will take some other actions depending on the messages received from the clients olso.( updating databses, sending infomations). I m calling these methods in the isdatareceived (). the server is working perfectly , but it works only for single client at the moment.
how shold I create threads & whare should I create them. give me an example of creating multiple threads for connected clients.
Thank you.
Reply
Answers (
1
)
How to suspend current windows thread in C#
Threading.Monitor <
>