Lines Matching full:session
11 // Connect() must be used to create new session to a remote host. The
12 // returned session is initially in INITIALIZING state. Later state is
13 // changed to CONNECTED if the session is accepted by the host or
14 // CLOSED if the session is rejected.
18 // The callback function decides whether the session should be accepted or
22 // Implementations of the Session and SessionManager interfaces
27 // Connect() method. The Session's state changes to AUTHENTICATED once
30 // SESSION OWNERSHIP AND SHUTDOWN
37 // When client connects to a host it sends a session-initiate stanza with list
39 // session, then it selects configuration that is supported by both sides
40 // and then replies with the session-accept stanza that contans selected
41 // configuration. The configuration specified in the session-accept is used
42 // for the session.
47 // session-initiate stanza, the IncomingSessionCallback is called. The
48 // configuration sent in the session-intiate staza is available via
49 // ChromotocolConnnection::candidate_config(). If an incoming session is
51 // select session configuration and then set it with Session::set_config().
61 #include "remoting/protocol/session.h"
72 // Generic interface for Chromoting session manager.
82 // Accept the session.
85 // Reject the session due to incompatible session configuration.
88 // Reject the session because the host is currently disabled due
92 // Reject the session because the client is not allowed to connect
101 // Called when the session manager is ready to create outgoing
106 // Called when a new session is received. If the host decides to
107 // accept the session it should set the |response| to
109 // INCOMPATIBLE. INCOMPATIBLE indicates that the session has
111 // callback accepts the |session| then it must also set
112 // configuration for the |session| using Session::set_config().
113 // The callback must take ownership of the |session| if it ACCEPTs it.
114 virtual void OnIncomingSession(Session* session,
121 // Initializes the session client. Caller retains ownership of the
126 // Tries to create a session to the host |jid|. Must be called only
131 // |authenticator| is a client authenticator for the session.
132 // |config| contains the session configurations that the client supports.
133 virtual scoped_ptr<Session> Connect(
138 // Close session manager. Can be called only after all corresponding