eve.net.ssh.driver
Fair EVE session driver for ddn-net-ssh.
EveSessionDriver schedules a single non-reentrant session pump on an EVE event loop. Connect/readiness events, agent progress, and application callbacks all funnel into one coalesced pump pass with bounded work; repeated readiness while a pass is running requests exactly one follow-up pass, while transport waits never poll.
Applications observe progress through channel watchers rather than periodic polling: a watcher runs when its channel actually makes progress (readable data, extended data, or send-window relief), and wakeups rotate fairly across channels. The driver knows nothing about SFTP or any other consumer - a watcher is an opaque delegate.
Deadlines cover keepalive/rekey schedules, credential waits, and operation timeouts: one-shot and periodic timers run their callback and then request a pump, so timer-only progress works without any network readiness. shutdown cancels every deadline, closes the transport, wakes all watchers one final time, and turns further pump requests into no-ops.
Types 1
EVE-driven scheduler for one SSH session.
The driver owns the transport wiring: it installs the connection's onConnect, onData, onWritable, and onClose callbacks and must not be combined with application-installed callbacks on the same connection. The session and transport are borrowed and must outlive the driver.
maxPassesPerWakeupMaximum pump passes per wakeup before deferring continuationvoid requestPump()Requests a coalesced session pump.void watchOpen(SshChannelOpenOperation open,
void delegate(SshChannelOpenOperation) onComplete)Watches an in-flight channel open for terminal completion.void unwatchOpen(SshChannelOpenOperation open)Stops observing an in-flight channel open.void onPump(void delegate() onPump) @propertySets an application hook invoked once after every pump pass.void watchChannel(SshChannel channel, void delegate() onProgress)Watches a channel for actual progress.void unwatchChannel(SshChannel channel)Stops watching a channel.Token registerDeadline(Duration delay, void delegate() onDeadline)Registers a one-shot deadline.Token registerPeriodic(Duration interval, void delegate() onTick)Registers a periodic tick (keepalive or rekey schedules).void cancelDeadline(Token token)Cancels a deadline or periodic tick.void shutdown()Shuts the driver down deterministically.this(ref EventLoop loop, ref TcpConnection conn,
EveSshTransport transport, SshSessionImpl session)Constructs a driver and wires the connection callbacks.