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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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);
s/case/cast/
=/
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?
Unfortunately I don't really know. I've never actually seen/tried to connect to a Microsoft Office Communicator Server.