mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Added comments to rcli
This commit is contained in:
parent
f330c2a248
commit
abb7b81b13
2 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,9 @@ func ListenAndServe(proto, addr string, service Service) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
|
||||
// Parse an rcli call on a new connection, and pass it to `service` if it
|
||||
// is valid.
|
||||
func Serve(conn io.ReadWriter, service Service) error {
|
||||
r := bufio.NewReader(conn)
|
||||
var args []string
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
package rcli
|
||||
|
||||
// rcli (Remote Command-Line Interface) is a simple protocol for...
|
||||
// serving command-line interfaces remotely.
|
||||
//
|
||||
// rcli can be used over any transport capable of a) sending binary streams in
|
||||
// both directions, and b) capable of half-closing a connection. TCP and Unix sockets
|
||||
// are the usual suspects.
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
|
Loading…
Reference in a new issue