trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1153660 - /trafficserver/traffic/trunk/proxy/InkAPI.cc
Date Wed, 03 Aug 2011 20:47:45 GMT
Author: amc
Date: Wed Aug  3 20:47:44 2011
New Revision: 1153660

URL: http://svn.apache.org/viewvc?rev=1153660&view=rev
Log:
Fixed function definition for TS-817.

Modified:
    trafficserver/traffic/trunk/proxy/InkAPI.cc

Modified: trafficserver/traffic/trunk/proxy/InkAPI.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/InkAPI.cc?rev=1153660&r1=1153659&r2=1153660&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/InkAPI.cc (original)
+++ trafficserver/traffic/trunk/proxy/InkAPI.cc Wed Aug  3 20:47:44 2011
@@ -7090,15 +7090,17 @@ TSFetchPages(TSFetchUrlParams_t *params)
 }
 
 void
-TSFetchUrl(const char* headers, int request_len, unsigned int ip, int port , TSCont contp,
TSFetchWakeUpOptions callback_options,TSFetchEvent events)
+TSFetchUrl(const char* headers, int request_len, sockaddr const* ip , TSCont contp, TSFetchWakeUpOptions
callback_options,TSFetchEvent events)
 {
   if (callback_options != NO_CALLBACK) {
     sdk_assert(sdk_sanity_check_continuation(contp) == TS_SUCCESS);
   }
 
   FetchSM *fetch_sm =  FetchSMAllocator.alloc();
+  in_addr_t addr = ink_inet_ip4_addr_cast(ip);
+  unsigned short port = ink_inet_port_cast(ip);
 
-  fetch_sm->init((Continuation*)contp, callback_options, events, headers, request_len,
ip,port);
+  fetch_sm->init((Continuation*)contp, callback_options, events, headers, request_len,
addr, port);
   fetch_sm->httpConnect();
 }
 



Mime
View raw message