blob: cd0c5930c4c70625dec7181d3c11022b952729c9 [file] [log] [blame]
Todd Wange5d67b42014-05-27 10:48:07 -07001// This file was auto-generated by the veyron vdl tool.
Tilak Sharma43395f32014-05-27 11:33:38 -07002// Source: tunnel.vdl
Jiri Simsa5293dcb2014-05-10 09:56:38 -07003
4package tunnel
5
6import (
7 "veyron2/security"
8
9 // The non-user imports are prefixed with "_gen_" to prevent collisions.
Cosmos Nicolaoub07fa772014-05-16 08:07:02 -070010 _gen_veyron2 "veyron2"
Matt Rosencrantz29147f72014-06-06 12:46:01 -070011 _gen_context "veyron2/context"
Jiri Simsa5293dcb2014-05-10 09:56:38 -070012 _gen_ipc "veyron2/ipc"
13 _gen_naming "veyron2/naming"
Cosmos Nicolaouae678942014-05-17 17:21:43 -070014 _gen_rt "veyron2/rt"
Todd Wang0ecdd7a2014-07-14 16:24:38 -070015 _gen_vdlutil "veyron2/vdl/vdlutil"
Jiri Simsa5293dcb2014-05-10 09:56:38 -070016 _gen_wiretype "veyron2/wiretype"
17)
18
19type ShellOpts struct {
20 UsePty bool // Whether to open a pseudo-terminal
21 Environment []string // Environment variables to pass to the remote shell.
22 Rows uint32 // Window size.
23 Cols uint32
24}
Todd Wange5d67b42014-05-27 10:48:07 -070025
Jiri Simsa5293dcb2014-05-10 09:56:38 -070026type ClientShellPacket struct {
27 // Bytes going to the shell's stdin.
28 Stdin []byte
29 // A dynamic update of the window size. The default value of 0 means no-change.
30 Rows uint32
31 Cols uint32
32}
Todd Wange5d67b42014-05-27 10:48:07 -070033
Jiri Simsa5293dcb2014-05-10 09:56:38 -070034type ServerShellPacket struct {
35 // Bytes coming from the shell's stdout.
36 Stdout []byte
37 // Bytes coming from the shell's stderr.
38 Stderr []byte
39}
40
41// Tunnel is the interface the client binds and uses.
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -070042// Tunnel_ExcludingUniversal is the interface without internal framework-added methods
43// to enable embedding without method collisions. Not to be used directly by clients.
44type Tunnel_ExcludingUniversal interface {
Jiri Simsa5293dcb2014-05-10 09:56:38 -070045 // The Forward method is used for network forwarding. All the data sent over
46 // the byte stream is forwarded to the requested network address and all the
47 // data received from that network connection is sent back in the reply
48 // stream.
Matt Rosencrantz29147f72014-06-06 12:46:01 -070049 Forward(ctx _gen_context.T, network string, address string, opts ..._gen_ipc.CallOpt) (reply TunnelForwardStream, err error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070050 // The Shell method is used to either run shell commands remotely, or to open
51 // an interactive shell. The data received over the byte stream is sent to the
52 // shell's stdin, and the data received from the shell's stdout and stderr is
53 // sent back in the reply stream. It returns the exit status of the shell
54 // command.
Matt Rosencrantz29147f72014-06-06 12:46:01 -070055 Shell(ctx _gen_context.T, command string, shellOpts ShellOpts, opts ..._gen_ipc.CallOpt) (reply TunnelShellStream, err error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070056}
57type Tunnel interface {
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -070058 _gen_ipc.UniversalServiceMethods
59 Tunnel_ExcludingUniversal
Jiri Simsa5293dcb2014-05-10 09:56:38 -070060}
61
62// TunnelService is the interface the server implements.
63type TunnelService interface {
64
65 // The Forward method is used for network forwarding. All the data sent over
66 // the byte stream is forwarded to the requested network address and all the
67 // data received from that network connection is sent back in the reply
68 // stream.
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -070069 Forward(context _gen_ipc.ServerContext, network string, address string, stream TunnelServiceForwardStream) (err error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070070 // The Shell method is used to either run shell commands remotely, or to open
71 // an interactive shell. The data received over the byte stream is sent to the
72 // shell's stdin, and the data received from the shell's stdout and stderr is
73 // sent back in the reply stream. It returns the exit status of the shell
74 // command.
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -070075 Shell(context _gen_ipc.ServerContext, command string, shellOpts ShellOpts, stream TunnelServiceShellStream) (reply int32, err error)
Jiri Simsa5293dcb2014-05-10 09:56:38 -070076}
77
78// TunnelForwardStream is the interface for streaming responses of the method
79// Forward in the service interface Tunnel.
80type TunnelForwardStream interface {
81
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -070082 // Send places the item onto the output stream, blocking if there is no
83 // buffer space available. Calls to Send after having called CloseSend
84 // or Cancel will fail. Any blocked Send calls will be unblocked upon
85 // calling Cancel.
Jiri Simsa5293dcb2014-05-10 09:56:38 -070086 Send(item []byte) error
87
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -070088 // CloseSend indicates to the server that no more items will be sent;
89 // server Recv calls will receive io.EOF after all sent items. This is
90 // an optional call - it's used by streaming clients that need the
91 // server to receive the io.EOF terminator before the client calls
92 // Finish (for example, if the client needs to continue receiving items
93 // from the server after having finished sending).
94 // Calls to CloseSend after having called Cancel will fail.
95 // Like Send, CloseSend blocks when there's no buffer space available.
Jiri Simsa5293dcb2014-05-10 09:56:38 -070096 CloseSend() error
97
98 // Recv returns the next item in the input stream, blocking until
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -070099 // an item is available. Returns io.EOF to indicate graceful end of
100 // input.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700101 Recv() (item []byte, err error)
102
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700103 // Finish performs the equivalent of CloseSend, then blocks until the server
104 // is done, and returns the positional return values for call.
105 //
106 // If Cancel has been called, Finish will return immediately; the output of
107 // Finish could either be an error signalling cancelation, or the correct
108 // positional return values from the server depending on the timing of the
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700109 // call.
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700110 //
111 // Calling Finish is mandatory for releasing stream resources, unless Cancel
112 // has been called or any of the other methods return a non-EOF error.
113 // Finish should be called at most once.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700114 Finish() (err error)
115
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700116 // Cancel cancels the RPC, notifying the server to stop processing. It
117 // is safe to call Cancel concurrently with any of the other stream methods.
118 // Calling Cancel after Finish has returned is a no-op.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700119 Cancel()
120}
121
122// Implementation of the TunnelForwardStream interface that is not exported.
123type implTunnelForwardStream struct {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700124 clientCall _gen_ipc.Call
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700125}
126
127func (c *implTunnelForwardStream) Send(item []byte) error {
128 return c.clientCall.Send(item)
129}
130
131func (c *implTunnelForwardStream) CloseSend() error {
132 return c.clientCall.CloseSend()
133}
134
135func (c *implTunnelForwardStream) Recv() (item []byte, err error) {
136 err = c.clientCall.Recv(&item)
137 return
138}
139
140func (c *implTunnelForwardStream) Finish() (err error) {
141 if ierr := c.clientCall.Finish(&err); ierr != nil {
142 err = ierr
143 }
144 return
145}
146
147func (c *implTunnelForwardStream) Cancel() {
148 c.clientCall.Cancel()
149}
150
151// TunnelServiceForwardStream is the interface for streaming responses of the method
152// Forward in the service interface Tunnel.
153type TunnelServiceForwardStream interface {
154 // Send places the item onto the output stream, blocking if there is no buffer
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700155 // space available. If the client has canceled, an error is returned.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700156 Send(item []byte) error
157
158 // Recv fills itemptr with the next item in the input stream, blocking until
159 // an item is available. Returns io.EOF to indicate graceful end of input.
160 Recv() (item []byte, err error)
161}
162
163// Implementation of the TunnelServiceForwardStream interface that is not exported.
164type implTunnelServiceForwardStream struct {
165 serverCall _gen_ipc.ServerCall
166}
167
168func (s *implTunnelServiceForwardStream) Send(item []byte) error {
169 return s.serverCall.Send(item)
170}
171
172func (s *implTunnelServiceForwardStream) Recv() (item []byte, err error) {
173 err = s.serverCall.Recv(&item)
174 return
175}
176
177// TunnelShellStream is the interface for streaming responses of the method
178// Shell in the service interface Tunnel.
179type TunnelShellStream interface {
180
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700181 // Send places the item onto the output stream, blocking if there is no
182 // buffer space available. Calls to Send after having called CloseSend
183 // or Cancel will fail. Any blocked Send calls will be unblocked upon
184 // calling Cancel.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700185 Send(item ClientShellPacket) error
186
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700187 // CloseSend indicates to the server that no more items will be sent;
188 // server Recv calls will receive io.EOF after all sent items. This is
189 // an optional call - it's used by streaming clients that need the
190 // server to receive the io.EOF terminator before the client calls
191 // Finish (for example, if the client needs to continue receiving items
192 // from the server after having finished sending).
193 // Calls to CloseSend after having called Cancel will fail.
194 // Like Send, CloseSend blocks when there's no buffer space available.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700195 CloseSend() error
196
197 // Recv returns the next item in the input stream, blocking until
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700198 // an item is available. Returns io.EOF to indicate graceful end of
199 // input.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700200 Recv() (item ServerShellPacket, err error)
201
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700202 // Finish performs the equivalent of CloseSend, then blocks until the server
203 // is done, and returns the positional return values for call.
204 //
205 // If Cancel has been called, Finish will return immediately; the output of
206 // Finish could either be an error signalling cancelation, or the correct
207 // positional return values from the server depending on the timing of the
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700208 // call.
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700209 //
210 // Calling Finish is mandatory for releasing stream resources, unless Cancel
211 // has been called or any of the other methods return a non-EOF error.
212 // Finish should be called at most once.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700213 Finish() (reply int32, err error)
214
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700215 // Cancel cancels the RPC, notifying the server to stop processing. It
216 // is safe to call Cancel concurrently with any of the other stream methods.
217 // Calling Cancel after Finish has returned is a no-op.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700218 Cancel()
219}
220
221// Implementation of the TunnelShellStream interface that is not exported.
222type implTunnelShellStream struct {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700223 clientCall _gen_ipc.Call
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700224}
225
226func (c *implTunnelShellStream) Send(item ClientShellPacket) error {
227 return c.clientCall.Send(item)
228}
229
230func (c *implTunnelShellStream) CloseSend() error {
231 return c.clientCall.CloseSend()
232}
233
234func (c *implTunnelShellStream) Recv() (item ServerShellPacket, err error) {
235 err = c.clientCall.Recv(&item)
236 return
237}
238
239func (c *implTunnelShellStream) Finish() (reply int32, err error) {
240 if ierr := c.clientCall.Finish(&reply, &err); ierr != nil {
241 err = ierr
242 }
243 return
244}
245
246func (c *implTunnelShellStream) Cancel() {
247 c.clientCall.Cancel()
248}
249
250// TunnelServiceShellStream is the interface for streaming responses of the method
251// Shell in the service interface Tunnel.
252type TunnelServiceShellStream interface {
253 // Send places the item onto the output stream, blocking if there is no buffer
Bogdan Capritaa5ef10c2014-07-18 14:23:16 -0700254 // space available. If the client has canceled, an error is returned.
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700255 Send(item ServerShellPacket) error
256
257 // Recv fills itemptr with the next item in the input stream, blocking until
258 // an item is available. Returns io.EOF to indicate graceful end of input.
259 Recv() (item ClientShellPacket, err error)
260}
261
262// Implementation of the TunnelServiceShellStream interface that is not exported.
263type implTunnelServiceShellStream struct {
264 serverCall _gen_ipc.ServerCall
265}
266
267func (s *implTunnelServiceShellStream) Send(item ServerShellPacket) error {
268 return s.serverCall.Send(item)
269}
270
271func (s *implTunnelServiceShellStream) Recv() (item ClientShellPacket, err error) {
272 err = s.serverCall.Recv(&item)
273 return
274}
275
276// BindTunnel returns the client stub implementing the Tunnel
277// interface.
278//
279// If no _gen_ipc.Client is specified, the default _gen_ipc.Client in the
280// global Runtime is used.
281func BindTunnel(name string, opts ..._gen_ipc.BindOpt) (Tunnel, error) {
282 var client _gen_ipc.Client
283 switch len(opts) {
284 case 0:
285 client = _gen_rt.R().Client()
286 case 1:
287 switch o := opts[0].(type) {
Cosmos Nicolaoub07fa772014-05-16 08:07:02 -0700288 case _gen_veyron2.Runtime:
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700289 client = o.Client()
290 case _gen_ipc.Client:
291 client = o
292 default:
Todd Wang0ecdd7a2014-07-14 16:24:38 -0700293 return nil, _gen_vdlutil.ErrUnrecognizedOption
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700294 }
295 default:
Todd Wang0ecdd7a2014-07-14 16:24:38 -0700296 return nil, _gen_vdlutil.ErrTooManyOptionsToBind
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700297 }
298 stub := &clientStubTunnel{client: client, name: name}
299
300 return stub, nil
301}
302
303// NewServerTunnel creates a new server stub.
304//
305// It takes a regular server implementing the TunnelService
306// interface, and returns a new server stub.
307func NewServerTunnel(server TunnelService) interface{} {
308 return &ServerStubTunnel{
309 service: server,
310 }
311}
312
313// clientStubTunnel implements Tunnel.
314type clientStubTunnel struct {
315 client _gen_ipc.Client
316 name string
317}
318
Matt Rosencrantz29147f72014-06-06 12:46:01 -0700319func (__gen_c *clientStubTunnel) Forward(ctx _gen_context.T, network string, address string, opts ..._gen_ipc.CallOpt) (reply TunnelForwardStream, err error) {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700320 var call _gen_ipc.Call
321 if call, err = __gen_c.client.StartCall(ctx, __gen_c.name, "Forward", []interface{}{network, address}, opts...); err != nil {
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700322 return
323 }
324 reply = &implTunnelForwardStream{clientCall: call}
325 return
326}
327
Matt Rosencrantz29147f72014-06-06 12:46:01 -0700328func (__gen_c *clientStubTunnel) Shell(ctx _gen_context.T, command string, shellOpts ShellOpts, opts ..._gen_ipc.CallOpt) (reply TunnelShellStream, err error) {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700329 var call _gen_ipc.Call
330 if call, err = __gen_c.client.StartCall(ctx, __gen_c.name, "Shell", []interface{}{command, shellOpts}, opts...); err != nil {
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700331 return
332 }
333 reply = &implTunnelShellStream{clientCall: call}
334 return
335}
336
Matt Rosencrantz29147f72014-06-06 12:46:01 -0700337func (__gen_c *clientStubTunnel) UnresolveStep(ctx _gen_context.T, opts ..._gen_ipc.CallOpt) (reply []string, err error) {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700338 var call _gen_ipc.Call
339 if call, err = __gen_c.client.StartCall(ctx, __gen_c.name, "UnresolveStep", nil, opts...); err != nil {
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -0700340 return
341 }
342 if ierr := call.Finish(&reply, &err); ierr != nil {
343 err = ierr
344 }
345 return
346}
347
Matt Rosencrantz29147f72014-06-06 12:46:01 -0700348func (__gen_c *clientStubTunnel) Signature(ctx _gen_context.T, opts ..._gen_ipc.CallOpt) (reply _gen_ipc.ServiceSignature, err error) {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700349 var call _gen_ipc.Call
350 if call, err = __gen_c.client.StartCall(ctx, __gen_c.name, "Signature", nil, opts...); err != nil {
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -0700351 return
352 }
353 if ierr := call.Finish(&reply, &err); ierr != nil {
354 err = ierr
355 }
356 return
357}
358
Matt Rosencrantz29147f72014-06-06 12:46:01 -0700359func (__gen_c *clientStubTunnel) GetMethodTags(ctx _gen_context.T, method string, opts ..._gen_ipc.CallOpt) (reply []interface{}, err error) {
Matt Rosencrantzf5afcaf2014-06-02 11:31:22 -0700360 var call _gen_ipc.Call
361 if call, err = __gen_c.client.StartCall(ctx, __gen_c.name, "GetMethodTags", []interface{}{method}, opts...); err != nil {
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700362 return
363 }
364 if ierr := call.Finish(&reply, &err); ierr != nil {
365 err = ierr
366 }
367 return
368}
369
370// ServerStubTunnel wraps a server that implements
371// TunnelService and provides an object that satisfies
372// the requirements of veyron2/ipc.ReflectInvoker.
373type ServerStubTunnel struct {
374 service TunnelService
375}
376
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -0700377func (__gen_s *ServerStubTunnel) GetMethodTags(call _gen_ipc.ServerCall, method string) ([]interface{}, error) {
378 // TODO(bprosnitz) GetMethodTags() will be replaces with Signature().
379 // Note: This exhibits some weird behavior like returning a nil error if the method isn't found.
380 // This will change when it is replaced with Signature().
381 switch method {
382 case "Forward":
383 return []interface{}{security.Label(4)}, nil
384 case "Shell":
385 return []interface{}{security.Label(4)}, nil
386 default:
387 return nil, nil
388 }
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700389}
390
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -0700391func (__gen_s *ServerStubTunnel) Signature(call _gen_ipc.ServerCall) (_gen_ipc.ServiceSignature, error) {
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700392 result := _gen_ipc.ServiceSignature{Methods: make(map[string]_gen_ipc.MethodSignature)}
393 result.Methods["Forward"] = _gen_ipc.MethodSignature{
394 InArgs: []_gen_ipc.MethodArgument{
395 {Name: "network", Type: 3},
396 {Name: "address", Type: 3},
397 },
398 OutArgs: []_gen_ipc.MethodArgument{
399 {Name: "", Type: 65},
400 },
401 InStream: 67,
402 OutStream: 67,
403 }
404 result.Methods["Shell"] = _gen_ipc.MethodSignature{
405 InArgs: []_gen_ipc.MethodArgument{
406 {Name: "command", Type: 3},
407 {Name: "shellOpts", Type: 68},
408 },
409 OutArgs: []_gen_ipc.MethodArgument{
410 {Name: "", Type: 36},
411 {Name: "", Type: 65},
412 },
413 InStream: 69,
414 OutStream: 70,
415 }
416
Todd Wang0ecdd7a2014-07-14 16:24:38 -0700417 result.TypeDefs = []_gen_vdlutil.Any{
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700418 _gen_wiretype.NamedPrimitiveType{Type: 0x1, Name: "error", Tags: []string(nil)}, _gen_wiretype.NamedPrimitiveType{Type: 0x32, Name: "byte", Tags: []string(nil)}, _gen_wiretype.SliceType{Elem: 0x42, Name: "", Tags: []string(nil)}, _gen_wiretype.StructType{
419 []_gen_wiretype.FieldType{
420 _gen_wiretype.FieldType{Type: 0x2, Name: "UsePty"},
421 _gen_wiretype.FieldType{Type: 0x3d, Name: "Environment"},
422 _gen_wiretype.FieldType{Type: 0x34, Name: "Rows"},
423 _gen_wiretype.FieldType{Type: 0x34, Name: "Cols"},
424 },
Todd Wange5d67b42014-05-27 10:48:07 -0700425 "veyron/examples/tunnel.ShellOpts", []string(nil)},
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700426 _gen_wiretype.StructType{
427 []_gen_wiretype.FieldType{
428 _gen_wiretype.FieldType{Type: 0x43, Name: "Stdin"},
429 _gen_wiretype.FieldType{Type: 0x34, Name: "Rows"},
430 _gen_wiretype.FieldType{Type: 0x34, Name: "Cols"},
431 },
Todd Wange5d67b42014-05-27 10:48:07 -0700432 "veyron/examples/tunnel.ClientShellPacket", []string(nil)},
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700433 _gen_wiretype.StructType{
434 []_gen_wiretype.FieldType{
435 _gen_wiretype.FieldType{Type: 0x43, Name: "Stdout"},
436 _gen_wiretype.FieldType{Type: 0x43, Name: "Stderr"},
437 },
Todd Wange5d67b42014-05-27 10:48:07 -0700438 "veyron/examples/tunnel.ServerShellPacket", []string(nil)},
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700439 }
440
441 return result, nil
442}
443
Benjamin Prosnitzdcddb932014-05-27 15:55:58 -0700444func (__gen_s *ServerStubTunnel) UnresolveStep(call _gen_ipc.ServerCall) (reply []string, err error) {
445 if unresolver, ok := __gen_s.service.(_gen_ipc.Unresolver); ok {
Jiri Simsa5293dcb2014-05-10 09:56:38 -0700446 return unresolver.UnresolveStep(call)
447 }
448 if call.Server() == nil {
449 return
450 }
451 var published []string
452 if published, err = call.Server().Published(); err != nil || published == nil {
453 return
454 }
455 reply = make([]string, len(published))
456 for i, p := range published {
457 reply[i] = _gen_naming.Join(p, call.Name())
458 }
459 return
460}
461
462func (__gen_s *ServerStubTunnel) Forward(call _gen_ipc.ServerCall, network string, address string) (err error) {
463 stream := &implTunnelServiceForwardStream{serverCall: call}
464 err = __gen_s.service.Forward(call, network, address, stream)
465 return
466}
467
468func (__gen_s *ServerStubTunnel) Shell(call _gen_ipc.ServerCall, command string, shellOpts ShellOpts) (reply int32, err error) {
469 stream := &implTunnelServiceShellStream{serverCall: call}
470 reply, err = __gen_s.service.Shell(call, command, shellOpts, stream)
471 return
472}