2 Replies - 2629 Views - Last Post: 17 November 2012 - 06:28 PM Rate Topic: -----

#1 Boosi1  Icon User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 39
  • Joined: 29-July 12

multithreading chat

Posted 17 November 2012 - 10:59 AM

Hi i built a chat server and client and its worked well but now i want to do that 2 or more clients could connect between ,write to each other.. i watched examples but i didn't understand the code in there can someone explain or send me good tutorial for this?
Is This A Good Question/Topic? 0
  • +

Replies To: multithreading chat

#2 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5628
  • View blog
  • Posts: 12,071
  • Joined: 02-June 10

Re: multithreading chat

Posted 17 November 2012 - 12:17 PM

From my FAQ list:

Q: ...make a chat or client-server application?
A:Client/server chat tutorial
Peer-to-peer chat
Was This Post Helpful? 0
  • +
  • -

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2270
  • View blog
  • Posts: 9,496
  • Joined: 29-May 08

Re: multithreading chat

Posted 17 November 2012 - 06:28 PM

Is also a Thread per client a good idea? That uses as minimum of 1 MB of memory per a thread. Why not consider a task based approach, and use an asynchronous approach.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1