multiuser chat program

This is a discussion on multiuser chat program within the Networking/Device Communication forums, part of the General Programming Boards category; can any of you plz send me multiuser chat program..it should hav single program handling both client n server..but it ...

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    5

    multiuser chat program

    can any of you plz send me multiuser chat program..it should hav single program handling both client n server..but it should b multiuser..

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    1. Do not wake threads that are old.
    2. There is (or at least should be) no member of this forum that will "send you" complete working projects.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    5

    multiuser chat program

    i hav worked on chat program..but it is just one to one chat..i want multiuser..preferrably using threads..
    Last edited by jain123; 11-29-2008 at 11:27 AM.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,975
    jain123, I have moved your posts out from that other thread into this new one.

    This sounds like some kind of homework/project question, so read about the homework policy.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    What have you done so far to solve this? There are several open source chat programs available on the web - any particular reasons you do not want to use any of those?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    Registered User
    Join Date
    Nov 2008
    Posts
    5
    wel i want to see how threads work in chat program..keen to learn threadin..the prog which are available on net hav separate client n server code..i want 1 single code which handles both client and server using threading n multiplexing..

    Quote Originally Posted by matsp View Post
    What have you done so far to solve this? There are several open source chat programs available on the web - any particular reasons you do not want to use any of those?

    --
    Mats

  7. #7
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    And what code have you looked at so far? It's no point in anyone sending you a link to some code that you've already looked at, right?

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  8. #8
    Registered User
    Join Date
    Nov 2008
    Posts
    5
    the codes which i hav seen is not using threading..its just using fork()..i dnt hav ne of the code whichh uses threads n its multiuser..

    Quote Originally Posted by matsp View Post
    And what code have you looked at so far? It's no point in anyone sending you a link to some code that you've already looked at, right?

    --
    Mats
    he co

  9. #9
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    So, again, what code have you been looking at. If I find something on the net, in my searches (because I certainly don't have anything sitting on my machine that I could share), then I want to know what you have looked at.

    By the way, the difference between fork and starting a thread is fairly minimal as long as the code doesn't use global variables too much.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  10. #10
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    You never specified a language, so I dont know if C# would be a problem. That being said it is incredibly easy to write something like this in C# with a few hours on the internet, or with one google search there are a couple free ones, a few that even guide you through the process in a tutorial.

    http://www.codeproject.com/KB/IP/TCPIPChat.aspx

  11. #11
    Registered User
    Join Date
    Nov 2008
    Posts
    5
    no, i want C or c++ in unix..not c#

  12. #12
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    http://www.jdkoftinoff.com/main/Arti...t_Chat_Server/

    Google Search Keyword: c++ multiuser chat program

    Of course this looks like its only a server that can be telnetted to. You would have to integrate in a client. Although I think you'd be hard pressed to find for free exactly what you want in its entirety.

  13. #13
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    typical homework kiddo. Apalling English, refusal to put in any effort of their own, never posted before (and all posts in the one thread).

    Go fail your course, kiddo, you deserve no better and it would prevent one more lazy bugger from polluting the profession.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  2. Client-server system with input from separate program
    By robot-ic in forum Networking/Device Communication
    Replies: 3
    Last Post: 01-16-2009, 02:30 PM
  3. insufficient memory for tsr
    By manmohan in forum C Programming
    Replies: 8
    Last Post: 01-02-2004, 08:48 AM
  4. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 04:23 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21