Package spade :: Package xmpp :: Module session
[hide private]
[frames] | no frames]

Module session

source code


Version: $Id

Classes [hide private]
  Session
The Session class instance is used for storing all session-related info like credentials, socket/xml stream/session state flags, roster items (in case of client type connection) etc.
Variables [hide private]
  __version__ = "$Id"
When your handler is called it is getting the session instance as the first argument.
  SOCKET_UNCONNECTED = 0
  SOCKET_ALIVE = 1
  SOCKET_DEAD = 2
  STREAM__NOT_OPENED = 1
  STREAM__OPENED = 2
  STREAM__CLOSING = 3
  STREAM__CLOSED = 4
  SESSION_NOT_AUTHED = 1
  SESSION_AUTHED = 2
  SESSION_BOUND = 3
  SESSION_OPENED = 4
  SESSION_CLOSED = 5
Variables Details [hide private]

__version__

When your handler is called it is getting the session instance as the first argument. This is the difference from xmpppy 0.1 where you got the "Client" instance. With Session class you can have "multi-session" client instead of having one client for each connection. Is is specifically important when you are writing the server.

Value:
"$Id"