Matt Rosencrantz | 2b675f9 | 2015-03-05 12:52:50 -0800 | [diff] [blame] | 1 | package profiles |
| 2 | |
| 3 | import ( |
| 4 | "v.io/v23/context" |
| 5 | "v.io/v23/naming" |
| 6 | |
| 7 | "v.io/x/ref/profiles/internal/ipc/stream/proxy" |
| 8 | ) |
| 9 | |
| 10 | // NewProxy creates a new Proxy that listens for network connections on the provided |
| 11 | // (network, address) pair and routes VC traffic between accepted connections. |
| 12 | func NewProxy(ctx *context.T, network, address, pubAddress string, names ...string) (shutdown func(), endpoint naming.Endpoint, err error) { |
| 13 | return proxy.New(ctx, network, address, pubAddress, names...) |
| 14 | } |