Exemplo n.º 1
0
 public unsafe static bool ssh_options_set(SessionHandle session, SshOption option, string value)
 {
     // TODO: stackalloc
     fixed(byte *p = Encoding.UTF8.GetBytes(value))
     {
         return(ssh_options_set(session, option, new IntPtr(p)) == 0);
     }
 }
Exemplo n.º 2
0
 public unsafe static bool ssh_options_set(SessionHandle session, SshOption option, uint value)
 {
     return(ssh_options_set(session, option, new IntPtr(&value)) == 0);
 }
Exemplo n.º 3
0
 public static extern int ssh_options_set(SessionHandle session, SshOption option, IntPtr value);