Exemplo n.º 1
0
 public static unsafe int ssh_channel_write_stderr(ChannelHandle channel, ReadOnlySpan <byte> buffer)
 {
     fixed(byte *ptr = buffer)
     {
         return(ssh_channel_write_stderr(channel, new IntPtr(ptr), (uint)buffer.Length));
     }
 }
Exemplo n.º 2
0
 public static unsafe int ssh_channel_read(ChannelHandle channel, Span <byte> dest, int is_stderr)
 {
     fixed(byte *ptr = dest)
     {
         return(ssh_channel_read(channel, new IntPtr(ptr), (uint)dest.Length, is_stderr));
     }
 }
Exemplo n.º 3
0
 public static extern int ssh_channel_open_session(ChannelHandle channel);
Exemplo n.º 4
0
 public static extern int ssh_channel_open_forward_unix(ChannelHandle channel, string remotepath, string sourcehost, int localport);
Exemplo n.º 5
0
 public unsafe static extern int ssh_remove_channel_callbacks(ChannelHandle channel, ssh_channel_callbacks_struct *cb);
Exemplo n.º 6
0
 public static extern int ssh_channel_get_exit_status(ChannelHandle channel);
Exemplo n.º 7
0
 public static extern uint ssh_channel_window_size(ChannelHandle channel);
Exemplo n.º 8
0
 public unsafe static bool ssh_channel_is_closed(ChannelHandle channel)
 {
     return(ssh_channel_is_closed_(channel) != 0);
 }
Exemplo n.º 9
0
 private static extern int ssh_channel_is_closed_(ChannelHandle channel);
Exemplo n.º 10
0
 public static bool ssh_channel_is_eof(ChannelHandle channel)
 {
     return(ssh_channel_is_eof_(channel) != 0);
 }
Exemplo n.º 11
0
 private static extern int ssh_channel_is_eof_(ChannelHandle channel);
Exemplo n.º 12
0
 public static extern int ssh_channel_write_stderr(ChannelHandle channel, IntPtr data, uint len);
Exemplo n.º 13
0
 public static extern int ssh_channel_poll(ChannelHandle channel, int is_stderr);
Exemplo n.º 14
0
 public static extern int ssh_channel_read(ChannelHandle channel, IntPtr dest, uint count, int is_stderr);
Exemplo n.º 15
0
 public static extern int ssh_channel_request_exec(ChannelHandle channel, string cmd);