What type of stream I need to use to write a connect request message over a tcp socket, to jabber. I'mwriting a string with xml format. It should worked with the default socket stream or a dataoutputstream but it doesn't.
A:
Jabber is a pretty comprehensive protocol, so I don't think it's really analogous to opening a stream. On the other hand, it's a very well supported protocol, so you have your choice of libraries to help. Here is a link to the relevant information on jabber.org.
Steve Moyer
2008-10-12 20:06:15
+4
A:
Use the Smack client library to connect to a Jabber server, such as OpenFire. It is quite simple to use, you can connect and send/receive messages in a few lines of code.
Robin
2008-10-12 22:24:39
+1 on Smack. Easy-to-use, simple, feature-rich, works well. Very happy with it.
Cowan
2008-10-12 22:31:04