You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SessionState is an Enum which represent the internal state of a session (both unauthenticated and authenticated). This state wasn't completely useful because of the lack of informations like the JID etc.
A Session hold its state but when receiving packet it must produce a Static snapshot of its state to share it alongside the packet. The StaticSessionState will be use to provide informations about the sender to the packet consumer. It must provide a way to:
Know which JID is providing the packet
Know how to respond asynchronously to the sender with a SessionCommand
Must provide a ResponseAddr to asynchronously reply with generated packets
As a Session when receiving a StaticSessionState it must choose wether or not it needs to update its internal state.
i.e.: When the binding packet is received, the session hold a jid which is a BareJid. The session manager will authorize (or not) the session to proceed. In case of a success we want the internal state of the Session to be a FullJid with the negotiated resource.
The text was updated successfully, but these errors were encountered:
SessionState
is anEnum
which represent the internal state of a session (bothunauthenticated
andauthenticated
). This state wasn't completely useful because of the lack of informations like the JID etc.A
Session
hold its state but when receiving packet it must produce aStatic
snapshot of its state to share it alongside the packet. TheStaticSessionState
will be use to provide informations about the sender to the packet consumer. It must provide a way to:SessionCommand
ResponseAddr
to asynchronously reply with generated packetsAs a
Session
when receiving aStaticSessionState
it must choose wether or not it needs to update its internal state.i.e.: When the binding packet is received, the session hold a jid which is a
BareJid
. The session manager will authorize (or not) the session to proceed. In case of a success we want the internal state of theSession
to be aFullJid
with the negotiated resource.The text was updated successfully, but these errors were encountered: