Results 1 to 2 of 2
  1. #1
    yontan8888 is offline Member
    Join Date
    Jan 2011
    Rep Power

    Default how to connect a server to multiple clients

    I have a server connected to many client
    I try to table a message to anyone who is
    But what I sin destroys all the connection
    I need help ... I've been stuck on this month and I need to submit final project

    Iterator<String>it=mapIpConction.keySet().iterator ();

    while(it.hasNext() ){


  2. #2
    Anoop is offline Member
    Join Date
    Mar 2010
    Rep Power


    Hello dear,

    What I've observed from your code is that you are using non static instance for set....

    Use static instance of set so that the connection will remain into the list and you can get them one by one and can use for any purpose you want to..

Similar Threads

  1. Replies: 1
    Last Post: 10-26-2010, 12:21 AM
  2. How to connect n clients to a server?
    By chyrl in forum Networking
    Replies: 21
    Last Post: 07-25-2010, 05:01 PM
  3. clients cannot connect to server on another machine
    By java_muggers in forum Networking
    Replies: 9
    Last Post: 06-13-2010, 12:22 PM
  4. how to connect a server to multiple clients?
    By azhar in forum Networking
    Replies: 15
    Last Post: 03-22-2010, 01:54 PM
  5. multi clients connect to udp server
    By bachma7 in forum Networking
    Replies: 5
    Last Post: 12-12-2008, 09:56 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