Example #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));
     }
 }
Example #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));
     }
 }
Example #3
0
 public static extern int ssh_channel_open_session(ChannelHandle channel);
Example #4
0
 public static extern int ssh_channel_open_forward_unix(ChannelHandle channel, string remotepath, string sourcehost, int localport);
Example #5
0
 public unsafe static extern int ssh_remove_channel_callbacks(ChannelHandle channel, ssh_channel_callbacks_struct *cb);
Example #6
0
 public static extern int ssh_channel_get_exit_status(ChannelHandle channel);
Example #7
0
 public static extern uint ssh_channel_window_size(ChannelHandle channel);
Example #8
0
 public unsafe static bool ssh_channel_is_closed(ChannelHandle channel)
 {
     return(ssh_channel_is_closed_(channel) != 0);
 }
Example #9
0
 private static extern int ssh_channel_is_closed_(ChannelHandle channel);
Example #10
0
 public static bool ssh_channel_is_eof(ChannelHandle channel)
 {
     return(ssh_channel_is_eof_(channel) != 0);
 }
Example #11
0
 private static extern int ssh_channel_is_eof_(ChannelHandle channel);
Example #12
0
 public static extern int ssh_channel_write_stderr(ChannelHandle channel, IntPtr data, uint len);
Example #13
0
 public static extern int ssh_channel_poll(ChannelHandle channel, int is_stderr);
Example #14
0
 public static extern int ssh_channel_read(ChannelHandle channel, IntPtr dest, uint count, int is_stderr);
Example #15
0
 public static extern int ssh_channel_request_exec(ChannelHandle channel, string cmd);