(router *wshutil.WshRouter, sockName string)
| 184 | } |
| 185 | |
| 186 | func setupConnServerRpcClientWithRouter(router *wshutil.WshRouter, sockName string) (*wshutil.WshRpc, string, error) { |
| 187 | routeId := wshutil.MakeConnectionRouteId(connServerConnName) |
| 188 | rpcCtx := wshrpc.RpcContext{ |
| 189 | RouteId: routeId, |
| 190 | Conn: connServerConnName, |
| 191 | } |
| 192 | |
| 193 | bareRouteId := wshutil.MakeRandomProcRouteId() |
| 194 | bareClient := wshutil.MakeWshRpc(wshrpc.RpcContext{}, &wshclient.WshServer{}, bareRouteId) |
| 195 | router.RegisterTrustedLeaf(bareClient, bareRouteId) |
| 196 | |
| 197 | connServerClient := wshutil.MakeWshRpc(rpcCtx, wshremote.MakeRemoteRpcServerImpl(os.Stdout, router, bareClient, false, connServerInitialEnv, sockName), routeId) |
| 198 | router.RegisterTrustedLeaf(connServerClient, routeId) |
| 199 | return connServerClient, routeId, nil |
| 200 | } |
| 201 | |
| 202 | func serverRunRouter() error { |
| 203 | log.Printf("starting connserver router") |
no test coverage detected