Exemple #1
0
        /// <summary>
        /// Request a ticket to the server.
        /// </summary>
        private void RequestTicket()
        {
            Status = VncSessionStatus.Ticket;
            UInt32 t = ServerSessionFlag ? KAnp.KANP_CMD_VNC_START_TICKET : KAnp.KANP_CMD_VNC_CONNECT_TICKET;
            AnpMsg m = Kws.NewKcdCmd(t);

            if (!ServerSessionFlag)
            {
                m.AddUInt64(SessionID);
            }
            TicketQuery = Kws.PostKcdCmd(m, OnTicketReply);
        }
Exemple #2
0
 /// <summary>
 /// Called by the workspace state machine to log out of the workspace
 /// normally.
 /// </summary>
 public void PerformLogout()
 {
     // Send the logout command.
     m_kws.PostKcdCmd(m_kws.NewKcdCmd(KAnp.KANP_CMD_KWS_DISCONNECT_KWS), HandleDisconnectKwsReply);
 }