Making Client able to talk to other Clients

so my sorta IM program have 3 major components: Server, ServerClient, and Client. th Server listens for incoming connection thru ServerSocket, and when a Client connects, a ServerClient thread is started. thus the Server can talk to the Client and vice versa. my question is, how should I make one Client talk to other Clients? the ServerClient threads are not aware of each other.
Thanks!

You can have a Vector for keeping all ServerClient threads. You could write a method that would find if the user is logged in and another that would send a message to him. I think some sort of simple protocol will be needed for transfering what the user wants to do (send a message to the server, find if a user is logged in, send a message to the user, etc.) with proper parameters, but this is irrelevant for now.
Of course this is just a suggestion. Maybe someone will have a better idea.
...:: byElwiZ ::...

Similar Messages

  • Getting ichat to talk to other servers

    So, we have a functional and running private server that we use to serve ichat among other things. It's great for talking to other employees who have server accounts via ichat.
    But we can't seem to communicate with people OUTSIDE of that. It's getting to the point now where we would like to be able to chat with people outside of the company who also have jabber accounts (google talk, etc).
    How is this done? It seems like it should be a pretty simple thing.
    Thanks!

    We have our firewall off, so my assumption is that the ports are all open?
    Here is a bit of stuff from the ichat log when attempting to add a gmail buddy from our ichat client account:
    Sep 10 12:47:18 server jabberd/resolver[70991]: [xmpp-server.tcp.gmail.com] resolved to 74.125.155.125:5269 (1800 seconds to live)
    Sep 10 12:47:42 server jabberd/s2s[70999]: [7] [::ffff:74.125.46.80, port=62913] received dialback auth request for route 'server.example.com/gmail.com'
    Sep 10 12:48:21 server jabberd/s2s[70999]: [7] [::ffff:74.125.46.82, port=47587] received dialback auth request for route 'server.example.com/gmail.com'
    Sep 10 12:51:31 server jabberd/s2s[70999]: [7] [::ffff:74.125.46.80, port=55173] received dialback auth request for route 'server.example.com/gmail.com'

  • Apple TV and iTunes not able to see each other

    I think I have found a bug in either iTunes or Apple TV. My network configuration is a bit complicated so I will describe it first.
    Cable modem into my house hitting a Linksys WRT330N router at a central box in my laundry room. From there my house is hard wired to different rooms of the house. One goes to my office where I have a Apple Extreme N airport, connected to my PowerMac and my iTunes library. Again out of the central point in the laundry room again hard wired I have a wire going to my living room, where I have another Apple Extreme N airport, this is where my Apple TV is hard wired too. I have all the latest firmware and software installed on all my devices. Also both Airport Extreme's are setup using bridge mode and letting the Linksys serve the IP addresses for my network.
    Now to the problem. I can not explain when or why but my Apple TV and iTunes are not able to see each other after about 48 hours. I have tried all kinds of troubleshooting steps including changing my connection from being hard wired to wireless connecting directly to the Airport Extreme my iTunes computer is connected too. I know my network connection is good as I can see trailers and pull up video's from uTube.
    The only way to get them to see each other again is to do a factory reset of my Apple TV. After I do this they can both see each other again. But again after about 48 hours they lose the ability to see each other. I have taken these steps twice now to fix the problem
    I just finished reseting my Apple TV and am going to watch it to see when it stops working the next time.
    All of these problems started the other day when I introduced a new Apple Extreme N router in my my network. The airport Extreme seem to be working fine with my PS3 and XBox 360 that is also connected to it. So I don't think it's the router that is causing the problem.
    If I had to guess I would say something in the Apple TV is locking up. Although I have tried power cycling the Apple TV which does not fix the problem. I'm going through 3 routers to get between the Apple TV and the iTunes library somehow it appears the Apple TV is losing it way.
    I welcome any help as I don't want to have to keep factory resetting my Apple TV to keep it working.

    Fascinating just reading about your setup. I have a WRT350N and have noticed that it will drop its speed, sometimes down to 1Mbps. It seems to do so at about the same time every day, but usually comes back to speed in about 5 minutes. In my experience, the Apple TV will disconnect if the speed falls this low. Try monitoring the Linksys with Netstumbler, Vistumbler, or just in the Windows Network utility.
    Check the "lease obtained" and "lease expired" times for your router to see if that is when the network fails. I've just finished reading an angry thread over at the Linksys forum about the WRT330N where someone mentioned that the router wasn't renewing its lease.
    "I cannot set it run off automatic DHCP from the WRT330N, the router will not assign it an IP every time the lease expires, causing me to have to manually set an IP on the Print server. That's annoying. Having the router drop IP's to individual machines after 12-48 hours...very annoying."
    http://forums.linksys.com/linksys/board/message?board.id=Wireless_Routers&thread .id=67412
    If that is the problem, then I would consider setting up a Static IP address for your Apple TV. You can do that through the user interface -> Settings -> Network -> Configure ... (Quite intuitive as you only have change IP address and the subsequent details remain the same.)
    My router assigns IP Addresses in the ranges of 192.168.1.100 ->149. The idea here is to choose an address outside of that range but is not greater than 192.168.1.253 (and should not end in the number 1). You shouldn't have to change the linksys router as long as 50 clients are assigned in that range. You'll have to figure that out by accessing your router webpage at browser address 192.168.1.1 -> the default password is "admin" (without the quotes).
    Good luck.

  • Making Calls with Broadband Talk

    Hi Guys,
    I was just wondering if someone could clear this up for me??
    When making calls using Broadband Talk, do you have to dial the entire number (incl. STD Code) or should you just be able to make the call without this?
    For example, I live in Derry, N.Ireland and the full number starts 02871. When dialling from a normal landline you would just dial "71" and the the rest of the number. However. if I do this using my BB Talk line, I get a Dead tone. I tried to make a call and entered the number with the full STD Code, puely on the off-chance it would work, and it did actually work!! Is this necessary or should I be able to make a call without the full STD Code??
    Cheers
    Solved!
    Go to Solution.

    I think you always have to enter the dialling code I'm afraid

  • HT3529 I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?

    I am currently deployed and was using my iMessage to be able to talk to family back in the states and my iMessage stopped working. It will no longer select my number to use as the send/receive. How do I fix this so I can continue to talk to family?

    Read here:
    http://support.apple.com/kb/TS2755

  • Will we be able to talk and surf with the iPhone 6?

    Does anyone know if we will finally be able to talk and use the web etc on the iPhone 6?

    The devices also include support for Voice over LTE (VoLTE) which allows users to make higher-quality phone calls over LTE. VoLTE will also allow users on CDMA networks like Verizon to use voice and data simultaneously for the first time.

  • HT204380 I am new to Facetime.  I want to be able to talk to my iMac from my Macbook.  When I try to connect via email I get a message that says the person being called "is not available for Face Time".

    I am new to Facetime.  I want to be able to talk to my iMac from my Macbook.  When I try to connect via email I get a message that says the person being called "is not available for Face Time".

    Hi PhiDor,
    Thanks for visiting Apple Support Communities.
    See this article for some information that can help:
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/ts4185
    Regards,
    Jeremy

  • After installed iMessage beta how to talk using other IM tools like AOL, Gtalk, etc

    Hi there, I'm using Lion 10.7.3 and have iMessage beta installed, but how to talk to other IM users like Gtalk, AOL, etc. I'm not able to start iChat any more.
    Thanks
    Gonghua

    Hi there, I'm using Lion 10.7.3 and have iMessage beta installed, but how to talk to other IM users like Gtalk, AOL, etc. I'm not able to start iChat any more.
    Thanks
    Gonghua

  • While send/receive email, I have received an error message "Sending of password d"? However with same login details, I am able to login with other application.

    While send/receive email, I have received an error message "Sending of password d"?
    However with same login details, I am able to login with other application.
    I have changed password still the issue remains as it is.

    https://support.mozilla.org/en-US/kb/cannot-send-messages

  • HT5622 I was making new Apple ID with my other Email on iTunes, but I canceled the process on payment page. After a while i went to make a new ID with same Email but it says the Email is already in use! what should i do?

    I was making new Apple ID with my other Email on iTunes, but I canceled the process on payment page. After a while I went to make a new ID with same Email but it says the Email is already in use! what should i do?

    You will need to try changing the email address on the first account and see if you can then re-use it on a new account - you can try changing the email address via http://appleid.apple.com or by logging into it via the Store > View Account menu option on a computer's iTunes (if you don't have a spare email account then you can create one via http://gmail.com or http://hotmail.com)

  • I am able to connect to my wifi network but am not able to connect to other computers on my network

    I am able to connect to my wifi network but am not able to connect to other computers on my network. I have installed windows 7 on parallels desktop, from windows i am able to access my network computers. But from Mac i can only access internet but not network computers Please help

    Ok, well if you're sure that there are shared folders on your PC's, then try this:
    Click somewhere on desktop, so you're in finder > Go > Connect to Server (shortcut to all of this is Command + K) then type in: smb://ipaddresshere
    eg:
    smb://192.168.1.7
    Then either connect as guest, or login with the PC's (not your mac's) username & password.

  • We are facing issue to open a static form PDF in Chrome Browser , which is loaded using Adobe FormService.Able to open in other browsers but not able to open the static forms in chrome with LC 11.0 version

    We are facing issue to open a static form PDF in Chrome Browser
    , which is loaded using Adobe FormService.
    Able to open in other browsers but not able to open the static
    forms in chrome with LC 11.0 version
    Below error message:
    The document you are trying to load
    requires Adobe Reader 8 or higher. You may not have the Adobe Reader installed
    or your viewing environment may not be properly configured to use Adobe Reader.
    For information on how to install Adobe Reader and configure your viewing
    environment please see http://www.adobe.com/go/pdf_forms_configure.
    Please let us know do we have any option for disabling
    <NoXFA/> tag by calling formService. RenderPDF() method on adobe service
    For dynamic forms its working by adding <NOXFA/> in
    DDX xml . only for static forms its not working because we are not using
    assembler service for this forms.
    Please let us know how we can disable XFA in static forms??????????????????

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • Is the contract-free iphone6 lock to the T-Mobile sim card or will i be able to use any other carrier sim card in iphone6?

    Is the contract-free iphone6 lock to the T-Mobile sim card or will i be able to use any other carrier sim card in the phone?

    The phone is NOT locked.

  • I have downloaded the SMS in Iphone to my PC. I am able to seen the other person photo in the conversation but my photo is missing can i attach my photo and name in the message?

    hi,
    I have downloaded the SMS in Iphone to my PC. I am able to seen the other person photo in the conversation but my photo is missing can i attach my photo and name in the message?

    I would think that would be something to ask the support for the software you used to download the SMS to the computer with.

  • I cannot access facebook on my MacBook Pro.  I am able to access every other website.  When trying to access facebook it says that page cannot be displayed as safari cannot establish a connection.

    I cannot access facebook on my MacBook Pro.  I am able to access every other website.  When trying to access facebook it says that page cannot be displayed as safari cannot establish a connection.  I was able to access it just fine few weeks ago....
    Please help!

    Hi Justysiag,
    If you are having issues opening a particular web site in Safari on your MacBook Pro, you may want to follow the steps in this article to see if you can resolve the issue -
    Safari 7 (Mavericks): If Safari can’t open a website
    http://support.apple.com/kb/PH17169
    Thanks for using Apple Support Communities.
    Best,
    Brett L

Maybe you are looking for

  • Line item and header records in the same infopackage

    Gurus, I wanted to check how can I make sure that I get all the line item documents in the same package with the header document record in the same infopackage? Is there some setting for that? If I am writing a custom extractore how can I make sure o

  • How can i create slaes order using BAPI

    hi all, i didnt work on BAPIS .how can i create sales order using BAPI here i should pass Z values. Moderator message : FAQ, search for available information. Thread locked. Edited by: Vinod Kumar on Sep 13, 2011 12:22 PM

  • Error in outbound delievery

    hi folks, when i was doing an outbound delievery after the creation of sales order (va01), i am getting the following error, NO SCHEDULE ITEMS DUE FOR DELIEVERY UPTO THE SELECTED DATA. can anybody help me out please. thanks in advance

  • Reinstalling OS X 10.6.8 and Migrating Data

    My MacBook Pro's HD is running very low on space (<10GB). I don't have any money to upgrade to a bigger HD and now my apps (e.g. iPhoto '11 & Aperture 3) are starting to not work properly. I've repaired both permissions and libraries for each via Dis

  • 13'' 2.5GHz MacBook Pro (non Retina) - Still worth getting?

    I'm looking into getting a new Mac. My thinking at the moment is that the SuperDrive will be much more useful to me than the Retina Display, so I was thinking of getting the older 13'' 2.5GHz MacBook Pro. But I hear this model is being phased out; wo