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)); } }
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)); } }
public static extern int ssh_channel_open_session(ChannelHandle channel);
public static extern int ssh_channel_open_forward_unix(ChannelHandle channel, string remotepath, string sourcehost, int localport);
public unsafe static extern int ssh_remove_channel_callbacks(ChannelHandle channel, ssh_channel_callbacks_struct *cb);
public static extern int ssh_channel_get_exit_status(ChannelHandle channel);
public static extern uint ssh_channel_window_size(ChannelHandle channel);
public unsafe static bool ssh_channel_is_closed(ChannelHandle channel) { return(ssh_channel_is_closed_(channel) != 0); }
private static extern int ssh_channel_is_closed_(ChannelHandle channel);
public static bool ssh_channel_is_eof(ChannelHandle channel) { return(ssh_channel_is_eof_(channel) != 0); }
private static extern int ssh_channel_is_eof_(ChannelHandle channel);
public static extern int ssh_channel_write_stderr(ChannelHandle channel, IntPtr data, uint len);
public static extern int ssh_channel_poll(ChannelHandle channel, int is_stderr);
public static extern int ssh_channel_read(ChannelHandle channel, IntPtr dest, uint count, int is_stderr);
public static extern int ssh_channel_request_exec(ChannelHandle channel, string cmd);