[][src]Function rdp::core::sec::connect

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

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

This example is not tested
use rdp::core::sec;
let mut mcs = mcs::Client(...).unwrap();
sec::connect(&mut mcs).unwrap();