Hi All,

I have opened a pull request about the NetVC Context proposal to evaluate.

Thanks

Oknet

2016-04-23 10:28 GMT+08:00 Chao Xu <xuc...@gmail.com>:

> As a proxy, there has two side: client side ( Client <-> Proxy ) and
> server side ( Proxy <-> Server ).
>
> Add a new member 'netvc_context' into class NetVConnection to indicate
> which side the NetVC working on.
>
> And remove member 'server_addr' from UnixNetVConnection:
>
> {code}
> 246   // amc - what is this for? Why not use remote_addr or con.addr?
> 247   IpEndpoint server_addr; /// Server address and port.
> {code}
>
> implement new methods get_client_addr() and get_server_addr() on
> NetVConnection to instead server_addr. these two methods could get the
> right server/client address value by get_local_addr() or get_remote_addr()
> depend on netvc_context.
>
> Any Suggestion?
>
> Thanks!
>
> Oknet Xu
>

Reply via email to