Function connect

Source
pub fn connect<T: Read + Write>(
    mcs: &mut Client<T>,
    domain: &String,
    username: &String,
    password: &String,
    auto_logon: bool,
) -> RdpResult<()>
Expand description

Security layer need mcs layer and send all message through the global channel

This function is called sec because old RDP security was made here

§Example

use rdp::core::sec;
let mut mcs = mcs::Client(...).unwrap();
sec::connect(&mut mcs).unwrap();