Menu

Connecting to other severs.

Help
2007-06-18
2013-04-29
  • Joseph Noel

    Joseph Noel - 2007-06-18

    Hi,

    I'm sorry, this really seems like a stupid beginner's question, but I tried searching for this and I can't find it anywhere on the Javadocs. Please bear with me.

    I'm trying to write a client for our company's own Communicator server. My problem is I can't find the function where I can set which server my MsnMessenger class should connect to for logging in. I can only get the connection using MsnMessenger's getConnection() method, but I can't find a setConnection() method anywhere. Can anyone please tell how I should go about doing what I need to do? I think I'm just looking at the wrong place.

    Thank you very much in advance.

     
    • Daniel Henninger

      If you case your MsnMessenger instance to BasicMessenger, you should be able to get around this during your call to "login".

                      ((BasicMessenger)msnMessenger).login(hostname, port);

       
      • Daniel Henninger

        s/case/cast/

        =/

         
      • Joseph Noel

        Joseph Noel - 2007-06-20

        Thank you very much!

        Just curious, can this library also be used for the Microsoft Office Communicator Server? Do they use the same protocols as MSN Messenger?

         
        • Daniel Henninger

          Unfortunately I don't really know.  I've never actually seen/tried to connect to a Microsoft Office Communicator Server.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.