Results 1 to 6 of 6
  1. #1
    niba10 is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default developing chat application

    so im at start of building chat application and i need help with the thinking thing..

    if client A want to make a chat with client B the message of A need send to the server and the server send it to client B ?


    it work like this or my thinking is not good ?
    Last edited by niba10; 06-28-2012 at 11:49 AM.

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,412
    Rep Power
    25

    Default Re: developing chat application

    That would work if both clients are connected to the server.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    niba10 is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default Re: developing chat application

    yea sure they are i mean like messenger
    when u start program u type username and password then u connected with the server (each client)
    and then each client has his friends and when he want chat with some1 it will do that thing

    it need to be multithearded client or somthing ?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,412
    Rep Power
    25

    Default Re: developing chat application

    Yes the server should use threads.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    niba10 is offline Member
    Join Date
    Feb 2011
    Posts
    30
    Rep Power
    0

    Default Re: developing chat application

    but why i need threads for what propose i can do that without it ?

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: developing chat application

    Quote Originally Posted by niba10 View Post
    but why i need threads for what propose i can do that without it ?
    Not really, no -- you absolutely must use multithreading for this type of application, else there is no way for the server to service multiple clients without blocking.

Similar Threads

  1. Developing a Team collaboration/MIS web application
    By rudranee in forum Advanced Java
    Replies: 0
    Last Post: 05-03-2012, 08:02 AM
  2. developing a standalone application using java
    By santhoshkeleti in forum New To Java
    Replies: 1
    Last Post: 11-15-2011, 06:18 PM
  3. developing GUI application
    By earlhickey in forum New To Java
    Replies: 7
    Last Post: 06-22-2011, 03:14 AM
  4. Developing Window based application
    By hisouka in forum New To Java
    Replies: 7
    Last Post: 08-11-2008, 05:12 AM
  5. Replies: 2
    Last Post: 03-10-2008, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •