| /* |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| */ |
| // This file automatically generated by: |
| // Apache Etch 1.1.0-incubating (LOCAL-0) / go 1.1.0-incubating (LOCAL-0) |
| // Thu Nov 18 15:39:28 CET 2010 |
| // This file is automatically created and should not be edited! |
| |
| package org_apache_etch_examples_helloworld |
| |
| import "etch" |
| |
| type RemoteHelloWorldClient struct { |
| RemoteHelloWorld |
| |
| vf etch.ValueFactory |
| Dsvc etch.DeliveryService |
| } |
| |
| func NewRemoteHelloWorldClient(dsvc etch.DeliveryService, vf etch.ValueFactory ) *RemoteHelloWorldClient { |
| ret := &RemoteHelloWorldClient{} |
| ret.Dsvc = dsvc |
| ret.vf = vf |
| return ret |
| } |
| |
| func (remote *RemoteHelloWorldClient) TransportControl(ctrl interface{}, value interface{}) { |
| remote.Dsvc.TransportControl(ctrl, value) |
| } |
| |
| |
| func (r *RemoteHelloWorldClient) F ( x int32) int32 { |
| msg := etch.NewMessage(r.vf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld.f"), r.vf, 1) |
| msg.Put(r.vf.(*ValueFactoryHelloWorld)._mf_x, x) |
| |
| retVal := r.Dsvc.EndCall(r.Dsvc.BeginCall(msg), r.vf.GetTypeByName("org.apache.etch.examples.helloworld.HelloWorld._result_f")) |
| return etch.Toint32(retVal) |
| } |
| |
| |