trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject svn commit: r1142852 - in /trafficserver/traffic/trunk/proxy: InkAPI.cc api/ts/ts.h.in
Date Mon, 04 Jul 2011 23:30:18 GMT
Author: zwoop
Date: Mon Jul  4 23:30:17 2011
New Revision: 1142852

URL: http://svn.apache.org/viewvc?rev=1142852&view=rev
Log:
TS-865 Need to get address for a VConn from a plugin similar to how you can get it for the
various things in a transaction

Author: William Bardwell
Review: Leif

Modified:
    trafficserver/traffic/trunk/proxy/InkAPI.cc
    trafficserver/traffic/trunk/proxy/api/ts/ts.h.in

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1142852&r1=1142851&r2=1142852&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Mon Jul  4 23:30:17 2011
@@ -6123,6 +6123,14 @@ TSVConnActiveTimeoutCancel(TSVConn connp
 }
 
 sockaddr const*
+TSNetVConnLocalAddrGet(TSVConn connp) {
+  sdk_assert(sdk_sanity_check_iocore_structure(connp) == TS_SUCCESS);
+  NetVConnection* vc = reinterpret_cast<NetVConnection*>(connp);
+  return ink_inet_sa_cast(vc->get_local_addr());
+}
+
+
+sockaddr const*
 TSNetVConnRemoteAddrGet(TSVConn connp) {
   sdk_assert(sdk_sanity_check_iocore_structure(connp) == TS_SUCCESS);
   NetVConnection* vc = reinterpret_cast<NetVConnection*>(connp);

Modified: trafficserver/traffic/trunk/proxy/api/ts/ts.h.in
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/api/ts/ts.h.in?rev=1142852&r1=1142851&r2=1142852&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/api/ts/ts.h.in (original)
+++ trafficserver/traffic/trunk/proxy/api/ts/ts.h.in Mon Jul  4 23:30:17 2011
@@ -2588,6 +2588,7 @@ extern "C"
   tsapi void TSIOBufferReaderConsume(TSIOBufferReader readerp, int64_t nbytes);
   tsapi int64_t TSIOBufferReaderAvail(TSIOBufferReader readerp);
 
+   tsapi struct sockaddr const* TSNetVConnLocalAddrGet(TSVConn vc);
 
   /* --------------------------------------------------------------------------
      Stats based on librecords raw stats (this is prefered API until we rewrite



Mime
View raw message