]> Cypherpunks repositories - gostls13.git/commit
exp/ssh: introduce Session to replace Cmd for interactive commands
authorDave Cheney <dave@cheney.net>
Mon, 24 Oct 2011 23:13:55 +0000 (19:13 -0400)
committerAdam Langley <agl@golang.org>
Mon, 24 Oct 2011 23:13:55 +0000 (19:13 -0400)
commit5791233461d9eaef94f8a29cee7a1933a5c015d2
treeba4b47d26800e0d31fa6226eb8311c94a1389222
parent2f3f3aa2ed298344f03813214d6b8d486b5f113e
exp/ssh: introduce Session to replace Cmd for interactive commands

This CL replaces the Cmd type with a Session type representing
interactive channels. This lays the foundation for supporting
other kinds of channels like direct-tcpip or x11.

client.go:
* replace chanlist map with slice.
* generalize stdout and stderr into a single type.
* unexport ClientChan to clientChan.

doc.go:
* update ServerConfig/ServerConn documentation.
* update Client example for Session.

message.go:
* make channelExtendedData more like channelData.

session.go:
* added Session which replaces Cmd.

R=agl, rsc, n13m3y3r, gustavo
CC=golang-dev
https://golang.org/cl/5302054
src/pkg/exp/ssh/Makefile
src/pkg/exp/ssh/client.go
src/pkg/exp/ssh/doc.go
src/pkg/exp/ssh/messages.go
src/pkg/exp/ssh/session.go [new file with mode: 0644]