Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 236
  • Last Modified:

Anyone wrote a Threaded Chat Server

Anyone wrote a threaded chat server?, i am in need of pointers, i wrote a server which was non threaded, but it did not detect when a person disconnected. (unless they sent a message to say they are leaving which in turn caused me all sorts of problems)

Please Help...

Craig C.
0
craig_capel
Asked:
craig_capel
  • 2
  • 2
  • 2
  • +3
2 Solutions
 
SlaughCommented:
I started (not finished tho) making a network snake game once that has the same problems, I have the client useing threads if that helps,  can get source code from http://members.optushome.com.au/slaugh/snake/
0
 
delphizedCommented:
Yes, Indy samples, chat directory, is what you're looking for
0
 
SlaughCommented:
I dont think that uses threads...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
swift99Commented:
Check out overbyte.delphicenter.com  

ICS is a non-blocking component (under windows).

There is no need for multi-threading a chat server under Windows unless you expect to have some serious background processing going on.  You can handle several hundred users on one thread, and only lose performance by mutlithreading.

Under linux you need to multithread, but the conversion is trivial.
0
 
delphizedCommented:
yes, it uses thread.
0
 
swift99Commented:
If it is Indy based then it will have to be threaded.
0
 
CleanupPingCommented:
craig_capel:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
kacorretiredCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:
       to split points between delphized and swift99
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Some days and here is the Christmas Time. I wish good luck and good health for you all and for your loved ones

kacor
EE Cleanup Volunteer
0
 
craig_capelAuthor Commented:
Forced Accept?!

This question was not answered why the hell was it a forced accept? i have been coming to EE for the last god knows how many years and i have helped many people and will do so when i can but i do not expect forced answers when it is wrong..

I was after theory or how to stop my problem, not what socket components to use, this is an insult.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now