Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: how to recive data from multiple clients in server

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to recive data from multiple clients in server

    Hi ,
    Suppose there is one server and r multiple client in chat room.
    Server will have to get one client msg and send that msg to all clients.
    how i can make server threads that it will receive data or message from multiple clients ?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,137
    Thanks
    48
    Thanked 2,156 Times in 2,129 Posts

    Default Re: how to recive data from multiple clients in server

    how i can make server threads
    One way is to use the Thread class to create a new thread when a connection is made by a client.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java TCP multiple clients
    By amjoseph in forum What's Wrong With My Code?
    Replies: 6
    Last Post: April 28th, 2012, 04:39 PM
  2. Multiple clients and one server. How to send data from one client to the others
    By u-will-neva-no in forum Java Theory & Questions
    Replies: 1
    Last Post: March 21st, 2012, 07:29 PM
  3. 1 Server- Multiple Clients Program
    By jclark1186 in forum Java Networking
    Replies: 2
    Last Post: September 23rd, 2011, 11:44 AM
  4. Server/clients connection periodically ask for a file
    By akis3110 in forum Java Theory & Questions
    Replies: 2
    Last Post: June 28th, 2011, 08:06 AM
  5. Transmitting from server to all clients.
    By newbie in forum Java Networking
    Replies: 0
    Last Post: December 19th, 2010, 04:07 PM