Re: MessageSession approach
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Wed, 31 Jan 2007 19:13:21 +0100 (CET)
Basically, MessageSession is just a wrapper, using plain XMPP, that's supposed 
to make a developer's life easier. There is no (additional) raw TCP involved, 
nor proprietary protocols.
Your questions are answered in greater detail at 
<http://camaya.net/api/gloox/classgloox_1_1MessageSession.html#_details>, 
<http://camaya.net/api/gloox/classgloox_1_1MessageSession.html#a6>, and 
<http://camaya.net/api/gloox/classgloox_1_1ClientBase.html#a18>.

cheers,
Jakob


On Wed Jan 31 2007, Anatoly Gutnick wrote:
> 1) Does it mean with MessageSession::send() chat message sent to the second
> side using TCP?
> And if MessageSession's buddy is after firewall? I believed Jubber server
> always used as Relay Server, no?
>
> 2) Does it mean the second side may also keep MessageSession opened?
> Or it does not matter what happens on second side?
> In my case the second side is not using gloox.
>
> I believe it is not propriotary gloox implementation of MessageSession
> approach.
> 3) What RFC explains the differencies of MessageSession::send() and
> Client::send()
>
> 4) MessageSession::send() is limited to sending a single chat message to
> the MessageSession's buddy. - and what it can not send for example?
>
>
> Thanks,
> Anatoly
>
> 2007/1/31, Jakob Schroeter <js@xxxxxxxxxx>:
> > Hi,
> >
> > On Tue Jan 30 2007, Anatoly Gutnick wrote:
> > > Hello,
> > >
> > > What are the actual disadvantages of Client::send().
> > > Can you please explian the difference in implementation of Client:send
> >
> > and
> >
> > > MessageSession:send
> > > that makes the difference?
> >
> > The 'disadvantage' of Client::send() is that it requires more work from
> > you to
> > achieve what you can do with a single call to MessageSession::send().
> >
> > Client::send() sends any XML over the wire to the server.
> > MessageSession::send() is limited to sending a single chat message to the
> > MessageSession's buddy.
> >
> > cheers,
> > Jakob
> >
> >
> > --
> > gloox-dev mailing list
> > to unsubscribe:
> > send a message with subject 'unsubscribe gloox-dev' to
> > minimalist@xxxxxxxxxx

Attachment: pgp03BibvD0xB.pgp
Description: PGP signature