Home | Trees | Indices | Help |
|
---|
|
object --+ | SessionNegotiator
A session negotiator controls the allowed and preferred association
types and association session types. Both the Consumer
and Server
use negotiators when creating
associations.
When a consumer makes an association request, it calls getAllowedType
to get the preferred association
type and association session type.
The server gets a request for a particular association/session type
and calls isAllowed
to determine if it should create an
association. If it is supported, negotiation is complete. If it is not,
the server calls getAllowedType
to get an allowed association
type to return to the consumer.
isAllowed
to determine if it should try again
with the given combination of association/session type.
|
|||
__init__(self,
allowed_types) x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|||
copy(self) | |||
setAllowedTypes(self,
allowed_types) Set the allowed association types, checking to make sure each combination is valid. |
|||
addAllowedType(self,
assoc_type,
session_type=None) Add an association type and session type to the allowed types list. |
|||
isAllowed(self,
assoc_type,
session_type) Is this combination of association type and session type allowed? |
|||
getAllowedType(self) Get a pair of assocation type and session type that are supported |
|||
Inherited from |
|
|||
[(str, str)] |
allowed_types A list of association/session types that are allowed by the server. |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
|
Set the allowed association types, checking to make sure each combination is valid. |
Add an association type and session type to the allowed types list. The assocation/session pairs are tried in the order that they are added. |
Is this combination of association type and session type allowed? |
Get a pair of assocation type and session type that are supported |
|
allowed_typesA list of association/session types that are allowed by the server. The order of the pairs in this list determines preference. If an association/session type comes earlier in the list, the library is more likely to use that type.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri May 11 15:30:19 2007 | http://epydoc.sourceforge.net |