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