Home | Trees | Indices | Help |
---|
|
|
|||
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. |
|
|||
__version__ =
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
|
|||
ERRORS =
|
|||
ERR_BAD_REQUEST =
|
|||
ERR_CONFLICT =
|
|||
ERR_FEATURE_NOT_IMPLEMENTED =
|
|||
ERR_FORBIDDEN =
|
|||
ERR_GONE =
|
|||
ERR_INTERNAL_SERVER_ERROR =
|
|||
ERR_ITEM_NOT_FOUND =
|
|||
ERR_JID_MALFORMED =
|
|||
ERR_NOT_ACCEPTABLE =
|
|||
ERR_NOT_ALLOWED =
|
|||
ERR_NOT_AUTHORIZED =
|
|||
ERR_PAYMENT_REQUIRED =
|
|||
ERR_RECIPIENT_UNAVAILABLE =
|
|||
ERR_REDIRECT =
|
|||
ERR_REGISTRATION_REQUIRED =
|
|||
ERR_REMOTE_SERVER_NOT_FOUND =
|
|||
ERR_REMOTE_SERVER_TIMEOUT =
|
|||
ERR_RESOURCE_CONSTRAINT =
|
|||
ERR_SERVICE_UNAVAILABLE =
|
|||
ERR_SUBSCRIPTION_REQUIRED =
|
|||
ERR_UNDEFINED_CONDITION =
|
|||
ERR_UNEXPECTED_REQUEST =
|
|||
SASL_ABORTED =
|
|||
SASL_INCORRECT_ENCODING =
|
|||
SASL_INVALID_AUTHZID =
|
|||
SASL_INVALID_MECHANISM =
|
|||
SASL_MECHANISM_TOO_WEAK =
|
|||
SASL_NOT_AUTHORIZED =
|
|||
SASL_TEMPORARY_AUTH_FAILURE =
|
|||
STREAM_BAD_FORMAT =
|
|||
STREAM_BAD_NAMESPACE_PREFIX =
|
|||
STREAM_CONFLICT =
|
|||
STREAM_CONNECTION_TIMEOUT =
|
|||
STREAM_HOST_GONE =
|
|||
STREAM_HOST_UNKNOWN =
|
|||
STREAM_IMPROPER_ADDRESSING =
|
|||
STREAM_INTERNAL_SERVER_ERROR =
|
|||
STREAM_INVALID_FROM =
|
|||
STREAM_INVALID_ID =
|
|||
STREAM_INVALID_NAMESPACE =
|
|||
STREAM_INVALID_XML =
|
|||
STREAM_NOT_AUTHORIZED =
|
|||
STREAM_POLICY_VIOLATION =
|
|||
STREAM_REMOTE_CONNECTION_FAILED =
|
|||
STREAM_RESOURCE_CONSTRAINT =
|
|||
STREAM_RESTRICTED_XML =
|
|||
STREAM_SEE_OTHER_HOST =
|
|||
STREAM_SYSTEM_SHUTDOWN =
|
|||
STREAM_UNDEFINED_CONDITION =
|
|||
STREAM_UNSUPPORTED_ENCODING =
|
|||
STREAM_UNSUPPORTED_STANZA_TYPE =
|
|||
STREAM_UNSUPPORTED_VERSION =
|
|||
STREAM_XML_NOT_WELL_FORMED =
|
|||
name =
|
|
__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.
|
ERRORS
|
ERR_BAD_REQUEST
|
ERR_FEATURE_NOT_IMPLEMENTED
|
ERR_INTERNAL_SERVER_ERROR
|
ERR_ITEM_NOT_FOUND
|
ERR_JID_MALFORMED
|
ERR_NOT_ACCEPTABLE
|
ERR_NOT_ALLOWED
|
ERR_NOT_AUTHORIZED
|
ERR_PAYMENT_REQUIRED
|
ERR_RECIPIENT_UNAVAILABLE
|
ERR_REGISTRATION_REQUIRED
|
ERR_REMOTE_SERVER_NOT_FOUND
|
ERR_REMOTE_SERVER_TIMEOUT
|
ERR_RESOURCE_CONSTRAINT
|
ERR_SERVICE_UNAVAILABLE
|
ERR_SUBSCRIPTION_REQUIRED
|
ERR_UNDEFINED_CONDITION
|
ERR_UNEXPECTED_REQUEST
|
SASL_INCORRECT_ENCODING
|
SASL_INVALID_AUTHZID
|
SASL_INVALID_MECHANISM
|
SASL_MECHANISM_TOO_WEAK
|
SASL_NOT_AUTHORIZED
|
SASL_TEMPORARY_AUTH_FAILURE
|
STREAM_BAD_FORMAT
|
STREAM_BAD_NAMESPACE_PREFIX
|
STREAM_CONNECTION_TIMEOUT
|
STREAM_HOST_GONE
|
STREAM_HOST_UNKNOWN
|
STREAM_IMPROPER_ADDRESSING
|
STREAM_INTERNAL_SERVER_ERROR
|
STREAM_INVALID_FROM
|
STREAM_INVALID_ID
|
STREAM_INVALID_NAMESPACE
|
STREAM_INVALID_XML
|
STREAM_NOT_AUTHORIZED
|
STREAM_POLICY_VIOLATION
|
STREAM_REMOTE_CONNECTION_FAILED
|
STREAM_RESOURCE_CONSTRAINT
|
STREAM_RESTRICTED_XML
|
STREAM_SEE_OTHER_HOST
|
STREAM_SYSTEM_SHUTDOWN
|
STREAM_UNDEFINED_CONDITION
|
STREAM_UNSUPPORTED_ENCODING
|
STREAM_UNSUPPORTED_STANZA_TYPE
|
STREAM_UNSUPPORTED_VERSION
|
STREAM_XML_NOT_WELL_FORMED
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sat Dec 15 22:25:13 2007 | http://epydoc.sourceforge.net |