You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2010/11/30 02:43:06 UTC
svn commit: r1040383 [23/38] - in /trafficserver/traffic/branches/wccp: ./
build/ contrib/ contrib/perl/AdminClient/lib/Apache/TS/ example/
example/add-header/ example/app-template/ example/append-transform/
example/basic-auth/ example/blacklist-0/ exa...
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckAppend.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckAppend.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckAppend.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckAppend.c Tue Nov 30 01:42:55 2010
@@ -78,19 +78,19 @@ typedef struct
CheckAppendPlugin my_plugin;
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
fprintf(stderr, "*** CheckAppend Test for append-transform-plugin v0.0***\n");
- INKFuncRegister(INK_FID_REQUEST_CREATE);
- INKFuncRegister(INK_FID_CONNECTION_FINISH);
- INKFuncRegister(INK_FID_OPTIONS_PROCESS);
- INKFuncRegister(INK_FID_OPTIONS_PROCESS_FINISH);
- INKFuncRegister(INK_FID_HEADER_PROCESS);
- INKFuncRegister(INK_FID_PARTIAL_BODY_PROCESS);
+ TSFuncRegister(TS_FID_REQUEST_CREATE);
+ TSFuncRegister(TS_FID_CONNECTION_FINISH);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS_FINISH);
+ TSFuncRegister(TS_FID_HEADER_PROCESS);
+ TSFuncRegister(TS_FID_PARTIAL_BODY_PROCESS);
}
void
-INKConnectionFinish(void *request_id, INKConnectionStatus status)
+TSConnectionFinish(void *request_id, TSConnectionStatus status)
{
/*print_debug((stderr, "Freeing %x\n", request_id)); */
@@ -99,31 +99,31 @@ INKConnectionFinish(void *request_id, IN
/*fprintf(stderr, "CONN %x FINISH with status", request_id);
switch(status) {
- case INK_CONN_COMPLETE:
- fprintf(stderr, "INK_CONN_COMPLETE\n");
+ case TS_CONN_COMPLETE:
+ fprintf(stderr, "TS_CONN_COMPLETE\n");
break;
- case INK_CONN_ERR:
- fprintf(stderr, "INK_CONN_ERR\n");
+ case TS_CONN_ERR:
+ fprintf(stderr, "TS_CONN_ERR\n");
break;
- case INK_READ_ERR:
- fprintf(stderr, "INK_READ_ERR\n");
+ case TS_READ_ERR:
+ fprintf(stderr, "TS_READ_ERR\n");
break;
- case INK_WRITE_ERR:
- fprintf(stderr, "INK_WRITE_ERR\n");
+ case TS_WRITE_ERR:
+ fprintf(stderr, "TS_WRITE_ERR\n");
break;
- case INK_TIME_EXPIRE:
- fprintf(stderr, "INK_TIME_EXPIRE\n");
+ case TS_TIME_EXPIRE:
+ fprintf(stderr, "TS_TIME_EXPIRE\n");
break;
} */
}
int
-INKRequestCreate(char *server_host, int max_host_size, char *server_port,
+TSRequestCreate(char *server_host, int max_host_size, char *server_port,
int max_port_size, char *request_buf, int max_request_size, void **request_id)
{
@@ -156,7 +156,7 @@ INKRequestCreate(char *server_host, int
void
-INKOptionsProcess(char *option, char *value)
+TSOptionsProcess(char *option, char *value)
{
if (strcmp(option, "append-file-path") == 0) {
if (strlen(value) < MAX_PATH_SIZE) {
@@ -169,7 +169,7 @@ INKOptionsProcess(char *option, char *va
}
void
-INKOptionsProcessFinish()
+TSOptionsProcessFinish()
{
int n;
@@ -218,14 +218,14 @@ INKOptionsProcessFinish()
}
-INKRequestAction
-INKHeaderProcess(void *req_id, char *header, int length, char *request_str)
+TSRequestAction
+TSHeaderProcess(void *req_id, char *header, int length, char *request_str)
{
- return INK_KEEP_GOING;
+ return TS_KEEP_GOING;
}
-INKRequestAction
-INKPartialBodyProcess(void *request_id, void *partial_content, int partial_length, int accum_length)
+TSRequestAction
+TSPartialBodyProcess(void *request_id, void *partial_content, int partial_length, int accum_length)
{
char *src;
int room;
@@ -237,18 +237,18 @@ INKPartialBodyProcess(void *request_id,
req_id = (CONN_DATA *) request_id;
if (req_id == NULL)
- return INK_STOP_FAIL;
+ return TS_STOP_FAIL;
if (partial_length == 0) { /* Response is now complete. */
if (memcmp(req_id->tail_of_resp, my_plugin.append_content, my_plugin.append_len) == 0) {
- return INK_STOP_SUCCESS;
+ return TS_STOP_SUCCESS;
}
fprintf(stderr, "Test Failed: appended content doesn't match\n");
fprintf(stderr, "append: [%s] tail_of_resp [%s]\n", my_plugin.append_content, req_id->tail_of_resp);
- return INK_STOP_FAIL;
+ return TS_STOP_FAIL;
}
/* Response not complete. Copy last _useful_ bytes to tail_of_file buffer */
@@ -273,6 +273,6 @@ INKPartialBodyProcess(void *request_id,
req_id->tail_of_resp_index += partial_length;
req_id->tail_of_resp[req_id->tail_of_resp_index + 1] = '\0';
- return INK_KEEP_GOING;
+ return TS_KEEP_GOING;
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckReplaceHeader.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckReplaceHeader.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckReplaceHeader.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/CheckReplaceHeader.c Tue Nov 30 01:42:55 2010
@@ -47,15 +47,15 @@
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
fprintf(stderr, "*** CheckReplaceHeader Test for replace-header-plugin ***\n");
- INKFuncRegister(INK_FID_HEADER_PROCESS);
+ TSFuncRegister(TS_FID_HEADER_PROCESS);
}
-INKRequestAction
-INKHeaderProcess(void *req_id, char *header, int length, char *request_str)
+TSRequestAction
+TSHeaderProcess(void *req_id, char *header, int length, char *request_str)
{
char *accept_ranges_loc;
@@ -64,7 +64,7 @@ INKHeaderProcess(void *req_id, char *hea
if (accept_ranges_loc == NULL) {
fprintf(stderr, "SDKtest: replace-header-Test Failed: Accept-Ranges field error\n");
fprintf(stderr, "Response header is:\n%s\n", header);
- return INK_STOP_FAIL;
+ return TS_STOP_FAIL;
}
while (*accept_ranges_loc != ':')
@@ -78,8 +78,8 @@ INKHeaderProcess(void *req_id, char *hea
if (strncasecmp(accept_ranges_loc, "Accept-Ranges", 13)) {
fprintf(stderr, "SDKtest: replace-header-Test Failed: Accept-Ranges field error\n");
fprintf(stderr, "Response header is:\n%s\n", header);
- return INK_STOP_FAIL;
+ return TS_STOP_FAIL;
}
- return INK_STOP_SUCCESS;
+ return TS_STOP_SUCCESS;
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/ClientAPI.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/ClientAPI.h?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/ClientAPI.h (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/ClientAPI.h Tue Nov 30 01:42:55 2010
@@ -30,49 +30,49 @@
typedef enum
{
- INK_FID_OPTIONS_PROCESS,
- INK_FID_OPTIONS_PROCESS_FINISH,
- INK_FID_CONNECTION_FINISH,
- INK_FID_PLUGIN_FINISH,
- INK_FID_REQUEST_CREATE,
- INK_FID_HEADER_PROCESS,
- INK_FID_PARTIAL_BODY_PROCESS,
- INK_FID_REPORT
-} INKPluginFuncId;
+ TS_FID_OPTIONS_PROCESS,
+ TS_FID_OPTIONS_PROCESS_FINISH,
+ TS_FID_CONNECTION_FINISH,
+ TS_FID_PLUGIN_FINISH,
+ TS_FID_REQUEST_CREATE,
+ TS_FID_HEADER_PROCESS,
+ TS_FID_PARTIAL_BODY_PROCESS,
+ TS_FID_REPORT
+} TSPluginFuncId;
typedef enum
{
- INK_CONN_COMPLETE,
- INK_CONN_ERR,
- INK_READ_ERR,
- INK_WRITE_ERR,
- INK_TIME_EXPIRE
-} INKConnectionStatus;
+ TS_CONN_COMPLETE,
+ TS_CONN_ERR,
+ TS_READ_ERR,
+ TS_WRITE_ERR,
+ TS_TIME_EXPIRE
+} TSConnectionStatus;
typedef enum
{
- INK_STOP_SUCCESS,
- INK_STOP_FAIL,
- INK_KEEP_GOING
-} INKRequestAction;
+ TS_STOP_SUCCESS,
+ TS_STOP_FAIL,
+ TS_KEEP_GOING
+} TSRequestAction;
typedef enum
{
- INK_SUM,
- INK_MAX,
- INK_MIN,
- INK_AVE
-} INKReportCombiner;
+ TS_SUM,
+ TS_MAX,
+ TS_MIN,
+ TS_AVE
+} TSReportCombiner;
#ifdef __cplusplus
extern "C"
{
#endif
- extern void INKPluginInit(int clientID);
+ extern void TSPluginInit(int clientID);
- extern void INKReportSingleData(char *metric, char *unit, INKReportCombiner combiner, double value);
+ extern void TSReportSingleData(char *metric, char *unit, TSReportCombiner combiner, double value);
- extern void INKFuncRegister(INKPluginFuncId fid);
+ extern void TSFuncRegister(TSPluginFuncId fid);
#ifdef __cplusplus
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/TestCacheAPI.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/TestCacheAPI.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/TestCacheAPI.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/internal/TestCacheAPI.c Tue Nov 30 01:42:55 2010
@@ -97,26 +97,26 @@ typedef struct
SDKtestCachePlugin my_plugin;
void
-INKPluginInit(int client_id)
+TSPluginInit(int client_id)
{
my_plugin.requests = 0;
my_plugin.successful_requests = 0;
/* register the plugin functions that are called back
* later in the program */
- INKFuncRegister(INK_FID_OPTIONS_PROCESS);
- INKFuncRegister(INK_FID_OPTIONS_PROCESS_FINISH);
- INKFuncRegister(INK_FID_CONNECTION_FINISH);
- INKFuncRegister(INK_FID_PLUGIN_FINISH);
- INKFuncRegister(INK_FID_REQUEST_CREATE);
- INKFuncRegister(INK_FID_HEADER_PROCESS);
- INKFuncRegister(INK_FID_PARTIAL_BODY_PROCESS);
- INKFuncRegister(INK_FID_REPORT);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS_FINISH);
+ TSFuncRegister(TS_FID_CONNECTION_FINISH);
+ TSFuncRegister(TS_FID_PLUGIN_FINISH);
+ TSFuncRegister(TS_FID_REQUEST_CREATE);
+ TSFuncRegister(TS_FID_HEADER_PROCESS);
+ TSFuncRegister(TS_FID_PARTIAL_BODY_PROCESS);
+ TSFuncRegister(TS_FID_REPORT);
}
/* process options specified in SDKtest_client.config */
void
-INKOptionsProcess(char *option, char *value)
+TSOptionsProcess(char *option, char *value)
{
if (strcmp(option, "target_host") == 0) {
my_plugin.target_host = strdup(value);
@@ -146,7 +146,7 @@ INKOptionsProcess(char *option, char *va
}
void
-INKOptionsProcessFinish()
+TSOptionsProcessFinish()
{
read_docsize_dist();
((strlen(my_plugin.target_host) == 0) || (strlen(my_plugin.target_port) == 0)) ?
@@ -154,15 +154,15 @@ INKOptionsProcessFinish()
}
void
-INKConnectionFinish(void *req_id, INKConnectionStatus conn_status)
+TSConnectionFinish(void *req_id, TSConnectionStatus conn_status)
{
- if (conn_status == INK_TIME_EXPIRE)
+ if (conn_status == TS_TIME_EXPIRE)
my_plugin.unfinished_requests++;
free(req_id);
}
void
-INKPluginFinish()
+TSPluginFinish()
{
int i;
free(my_plugin.target_host);
@@ -181,7 +181,7 @@ INKPluginFinish()
* i.e. GET URL HTTP/1.0 ....
*/
int
-INKRequestCreate(char *origin_server_host /* return */ , int max_hostname_size,
+TSRequestCreate(char *origin_server_host /* return */ , int max_hostname_size,
char *origin_server_port /* return */ , int max_portname_size,
char *request_buf /* return */ , int max_request_size,
void **req_id /* return */ )
@@ -264,18 +264,18 @@ INKRequestCreate(char *origin_server_hos
/* process response header returned either from synthetic
* server or from proxy server
*/
-INKRequestAction
-INKHeaderProcess(void *req_id, char *header, int length, char *request_str)
+TSRequestAction
+TSHeaderProcess(void *req_id, char *header, int length, char *request_str)
{
((User *) req_id)->header_bytes = length;
- return INK_KEEP_GOING;
+ return TS_KEEP_GOING;
}
/* process part of the response returned either from synthetic
* server or from proxy server
*/
-INKRequestAction
-INKPartialBodyProcess(void *req_id, void *partial_content, int partial_length, int accum_length)
+TSRequestAction
+TSPartialBodyProcess(void *req_id, void *partial_content, int partial_length, int accum_length)
{
if (partial_length == 0) {
if (accum_length >= ((User *) req_id)->doc_size_requested) {
@@ -285,18 +285,18 @@ INKPartialBodyProcess(void *req_id, void
fprintf(stderr, "ERROR: received bytes < requested bytes");
}
}
- return INK_KEEP_GOING;
+ return TS_KEEP_GOING;
}
/* output report data after the SDKtest report */
void
-INKReport()
+TSReport()
{
- INKReportSingleData("Total Requests", "count", INK_SUM, (double) my_plugin.requests);
- INKReportSingleData("Successful Documents", "count", INK_SUM, (double) my_plugin.successful_requests);
- INKReportSingleData("Unfinished Documents", "count", INK_SUM, (double) my_plugin.unfinished_requests);
- INKReportSingleData("Total Bytes Received", "count", INK_SUM, (double) my_plugin.total_bytes_received);
+ TSReportSingleData("Total Requests", "count", TS_SUM, (double) my_plugin.requests);
+ TSReportSingleData("Successful Documents", "count", TS_SUM, (double) my_plugin.successful_requests);
+ TSReportSingleData("Unfinished Documents", "count", TS_SUM, (double) my_plugin.unfinished_requests);
+ TSReportSingleData("Total Bytes Received", "count", TS_SUM, (double) my_plugin.total_bytes_received);
}
/******************** ADDED FUNCTIONS ****************************/
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process.c Tue Nov 30 01:42:55 2010
@@ -29,14 +29,14 @@
#include <stdio.h>
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
- fprintf(stderr, "*** INKOptionsProcess Test for Client ***\n");
- INKFuncRegister(INK_FID_OPTIONS_PROCESS);
+ fprintf(stderr, "*** TSOptionsProcess Test for Client ***\n");
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS);
}
void
-INKOptionsProcess(char *option, char *value)
+TSOptionsProcess(char *option, char *value)
{
fprintf(stderr, "%s = %s\n", option, value);
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process_finish.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process_finish.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process_finish.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/options_process_finish.c Tue Nov 30 01:42:55 2010
@@ -29,14 +29,14 @@
#include <stdio.h>
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
- fprintf(stderr, "*** INKOptionsProcessFinish Test for Client ***\n");
- INKFuncRegister(INK_FID_OPTIONS_PROCESS_FINISH);
+ fprintf(stderr, "*** TSOptionsProcessFinish Test for Client ***\n");
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS_FINISH);
}
void
-INKOptionsProcessFinish()
+TSOptionsProcessFinish()
{
- fprintf(stderr, "\nINKOptionsProcessFinish\n\n");
+ fprintf(stderr, "\nTSOptionsProcessFinish\n\n");
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/partial_body_process.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/partial_body_process.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/partial_body_process.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/partial_body_process.c Tue Nov 30 01:42:55 2010
@@ -29,15 +29,15 @@
#include <stdio.h>
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
- fprintf(stderr, "*** INKPartialBodyProcess Test for Client ***\n");
- INKFuncRegister(INK_FID_PARTIAL_BODY_PROCESS);
+ fprintf(stderr, "*** TSPartialBodyProcess Test for Client ***\n");
+ TSFuncRegister(TS_FID_PARTIAL_BODY_PROCESS);
}
-INKRequestAction
-INKPartialBodyProcess(void *req_id, void *partial_content, int partial_length, int accum_length)
+TSRequestAction
+TSPartialBodyProcess(void *req_id, void *partial_content, int partial_length, int accum_length)
{
- return INK_KEEP_GOING;
+ return TS_KEEP_GOING;
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/plugin_finish.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/plugin_finish.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/plugin_finish.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/plugin_finish.c Tue Nov 30 01:42:55 2010
@@ -25,13 +25,13 @@
#include <stdio.h>
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
- INKFuncRegister(INK_FID_PLUGIN_FINISH);
+ TSFuncRegister(TS_FID_PLUGIN_FINISH);
}
void
-INKPluginFinish()
+TSPluginFinish()
{
- fprintf(stderr, "INKPluginFinish\n");
+ fprintf(stderr, "TSPluginFinish\n");
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/readme
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/readme?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/readme (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/readme Tue Nov 30 01:42:55 2010
@@ -5,7 +5,7 @@ hello_world.c
- Example of the most basic routine of writing the SDKtest_client plugin.
This example simply prints a statement to standard error within the
- INKPluginInit() to make sure that the plugin is successfully loaded
+ TSPluginInit() to make sure that the plugin is successfully loaded
when SDKtest_client starts running.
SimSDKtest.c
@@ -13,9 +13,9 @@ SimSDKtest.c
The plugin reads in the origin_servers, hotset, docset, hitrate, and
docsize_dist_file options specified in the SDKtest_client.config
- by registering INKOptionsProcess(). Then it fills in the request
+ by registering TSOptionsProcess(). Then it fills in the request
headers into the buffer based on the above criteria in
- INKRequestCreate(). The request headers generated are in the
+ TSRequestCreate(). The request headers generated are in the
following format:
GET [www.hostname.com:port]/serial_number/lengthxxx HTTP/1.0
@@ -24,7 +24,7 @@ SimSDKtest.c
Similar to SDKtest, it keeps track of the number of bytes received
and the number of successful requests and finally report the
- result through registering INKReport().
+ result through registering TSReport().
SimSDKtestCache.c
- Simulate the default way of generating requests by the
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/report.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/report.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/report.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/report.c Tue Nov 30 01:42:55 2010
@@ -29,14 +29,14 @@
#include <stdio.h>
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
- fprintf(stderr, "*** INKPluginFinish Test for Client ***\n");
- INKFuncRegister(INK_FID_REPORT);
+ fprintf(stderr, "*** TSPluginFinish Test for Client ***\n");
+ TSFuncRegister(TS_FID_REPORT);
}
void
-INKReport()
+TSReport()
{
- INKReportSingleData("Report Test", "count", INK_SUM, 0);
+ TSReportSingleData("Report Test", "count", TS_SUM, 0);
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/client/api/request_create.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/client/api/request_create.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/client/api/request_create.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/client/api/request_create.c Tue Nov 30 01:42:55 2010
@@ -31,14 +31,14 @@
#define TRUE 1
void
-INKPluginInit(int clientid)
+TSPluginInit(int clientid)
{
- fprintf(stderr, "*** INKRequestCreate Test for Client ***\n");
- INKFuncRegister(INK_FID_REQUEST_CREATE);
+ fprintf(stderr, "*** TSRequestCreate Test for Client ***\n");
+ TSFuncRegister(TS_FID_REQUEST_CREATE);
}
int
-INKRequestCreate(char *origin_server_host /* return */ , int max_hostname_size,
+TSRequestCreate(char *origin_server_host /* return */ , int max_hostname_size,
char *origin_server_port /* return */ , int max_portname_size,
char *request_buf /* return */ , int max_request_size,
void **req_id /* return */ )
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/ServerAPI.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/ServerAPI.h?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/ServerAPI.h (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/ServerAPI.h Tue Nov 30 01:42:55 2010
@@ -30,13 +30,13 @@
typedef enum
{
- INK_FID_OPTIONS_PROCESS,
- INK_FID_OPTIONS_PROCESS_FINISH,
- INK_FID_PLUGIN_FINISH,
- INK_FID_RESPONSE_PREPARE,
- INK_FID_RESPONSE_PUT
-} INKPluginFuncId;
+ TS_FID_OPTIONS_PROCESS,
+ TS_FID_OPTIONS_PROCESS_FINISH,
+ TS_FID_PLUGIN_FINISH,
+ TS_FID_RESPONSE_PREPARE,
+ TS_FID_RESPONSE_PUT
+} TSPluginFuncId;
-extern void INKFuncRegister();
+extern void TSFuncRegister();
#endif /* _Api_h_ */
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/CheckContentServer.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/CheckContentServer.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/CheckContentServer.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/CheckContentServer.c Tue Nov 30 01:42:55 2010
@@ -61,7 +61,7 @@ CheckContentPlugin my_plugin;
void
-INKPluginInit()
+TSPluginInit()
{
int i = 0;
@@ -75,14 +75,14 @@ INKPluginInit()
my_plugin.content[i] = '\0';
/* register functions to be callbacked */
- INKFuncRegister(INK_FID_RESPONSE_PREPARE);
- INKFuncRegister(INK_FID_RESPONSE_PUT);
+ TSFuncRegister(TS_FID_RESPONSE_PREPARE);
+ TSFuncRegister(TS_FID_RESPONSE_PUT);
}
int
-INKResponsePrepare(char *req_hdr, int req_len, void **response_id)
+TSResponsePrepare(char *req_hdr, int req_len, void **response_id)
{
char *len_string;
RequestInfo *resp_id = (RequestInfo *) malloc(sizeof(RequestInfo));
@@ -108,7 +108,7 @@ INKResponsePrepare(char *req_hdr, int re
void
-INKResponsePut(void **resp_id /* return */ ,
+TSResponsePut(void **resp_id /* return */ ,
void *resp_buffer /* return */ ,
int *resp_bytes /* return */ ,
int resp_buffer_size, int bytes_last_response)
@@ -140,7 +140,7 @@ INKResponsePut(void **resp_id /* return
}
}
/* return NULL as the resp_id to indicate
- * that it is the last INKResponsePut call */
+ * that it is the last TSResponsePut call */
if (rid->bytes_not_sent <= 0 || rid->status_code != 200) {
free(rid);
*((RequestInfo **) resp_id) = NULL;
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/LogRequest.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/LogRequest.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/LogRequest.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/LogRequest.c Tue Nov 30 01:42:55 2010
@@ -56,17 +56,17 @@ typedef struct
LogRequestPlugin my_plugin;
void
-INKPluginInit()
+TSPluginInit()
{
fprintf(stderr, "*** LogRequest Test for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_OPTIONS_PROCESS);
- INKFuncRegister(INK_FID_OPTIONS_PROCESS_FINISH);
- INKFuncRegister(INK_FID_PLUGIN_FINISH);
- INKFuncRegister(INK_FID_RESPONSE_PREPARE);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS_FINISH);
+ TSFuncRegister(TS_FID_PLUGIN_FINISH);
+ TSFuncRegister(TS_FID_RESPONSE_PREPARE);
}
void
-INKOptionsProcess(char *option, char *value)
+TSOptionsProcess(char *option, char *value)
{
if (strcmp(option, "log_path") == 0) {
if (strlen(value) < MAX_PATH_SIZE) {
@@ -79,7 +79,7 @@ INKOptionsProcess(char *option, char *va
}
void
-INKOptionsProcessFinish()
+TSOptionsProcessFinish()
{
if (!(my_plugin.request_log = fopen(my_plugin.log_path, "a"))) {
fprintf(stderr, "Error: Unable to open %s\n", my_plugin.log_path);
@@ -88,14 +88,14 @@ INKOptionsProcessFinish()
}
void
-INKPluginFinish()
+TSPluginFinish()
{
fclose(my_plugin.request_log);
}
int
-INKResponsePrepare(char *req_hdr, int req_len, void **response_id)
+TSResponsePrepare(char *req_hdr, int req_len, void **response_id)
{
char log_string[MAX_LOG_STR_SIZE + 1];
char *time_string;
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/ServerAPI.h
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/ServerAPI.h?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/ServerAPI.h (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/ServerAPI.h Tue Nov 30 01:42:55 2010
@@ -30,14 +30,14 @@
typedef enum
{
- INK_FID_OPTIONS_PROCESS,
- INK_FID_OPTIONS_PROCESS_FINISH,
- INK_FID_PLUGIN_FINISH,
- INK_FID_RESPONSE_PREPARE,
- INK_FID_RESPONSE_PUT
-} INKPluginFuncId;
+ TS_FID_OPTIONS_PROCESS,
+ TS_FID_OPTIONS_PROCESS_FINISH,
+ TS_FID_PLUGIN_FINISH,
+ TS_FID_RESPONSE_PREPARE,
+ TS_FID_RESPONSE_PUT
+} TSPluginFuncId;
-extern void INKPluginInit();
-extern void INKFuncRegister(INKPluginFuncId);
+extern void TSPluginInit();
+extern void TSFuncRegister(TSPluginFuncId);
#endif /* _Api_h_ */
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServer.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServer.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServer.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServer.c Tue Nov 30 01:42:55 2010
@@ -48,16 +48,16 @@ typedef struct
} RequestInfo;
void
-INKPluginInit()
+TSPluginInit()
{
fprintf(stderr, "*** SimSynthServer Test for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_RESPONSE_PREPARE);
- INKFuncRegister(INK_FID_RESPONSE_PUT);
+ TSFuncRegister(TS_FID_RESPONSE_PREPARE);
+ TSFuncRegister(TS_FID_RESPONSE_PUT);
}
/* prepare response header for a request */
int
-INKResponsePrepare(char *req_hdr, int req_len, void **response_id)
+TSResponsePrepare(char *req_hdr, int req_len, void **response_id)
{
char *len_string;
RequestInfo *resp_id = (RequestInfo *) malloc(sizeof(RequestInfo));
@@ -82,7 +82,7 @@ INKResponsePrepare(char *req_hdr, int re
/* put response (response header + response document) into buffer */
void
-INKResponsePut(void **resp_id /* return */ ,
+TSResponsePut(void **resp_id /* return */ ,
void *resp_buffer /* return */ ,
int *resp_bytes /* return */ ,
int resp_buffer_size, int bytes_last_response)
@@ -113,7 +113,7 @@ INKResponsePut(void **resp_id /* return
}
}
/* return NULL as the resp_id to indicate
- * that it is the last INKResponsePut call */
+ * that it is the last TSResponsePut call */
if (rid->bytes_not_sent <= 0 || rid->status_code != 200) {
free(rid);
*((RequestInfo **) resp_id) = NULL;
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServerCache.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServerCache.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServerCache.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/SimSynthServerCache.c Tue Nov 30 01:42:55 2010
@@ -73,7 +73,7 @@ generate_cachability()
void
-INKOptionProcess(char *option, char *value)
+TSOptionProcess(char *option, char *value)
{
if (strcmp(option, "cachability") == 0) {
my_plugin.cachability_ratio = (double) (atoi(value)) / 100.0;
@@ -82,17 +82,17 @@ INKOptionProcess(char *option, char *val
void
-INKPluginInit()
+TSPluginInit()
{
fprintf(stderr, "*** SimSynthServerCache for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_OPTIONS_PROCESS);
- INKFuncRegister(INK_FID_RESPONSE_PREPARE);
- INKFuncRegister(INK_FID_RESPONSE_PUT);
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS);
+ TSFuncRegister(TS_FID_RESPONSE_PREPARE);
+ TSFuncRegister(TS_FID_RESPONSE_PUT);
}
/* prepare response header for a request */
int
-INKResponsePrepare(char *req_hdr, int req_len, void **response_id)
+TSResponsePrepare(char *req_hdr, int req_len, void **response_id)
{
char *len_string;
RequestInfo *resp_id = (RequestInfo *) malloc(sizeof(RequestInfo));
@@ -125,7 +125,7 @@ INKResponsePrepare(char *req_hdr, int re
/* put response (response header + response document) into buffer */
void
-INKResponsePut(void **resp_id /* return */ ,
+TSResponsePut(void **resp_id /* return */ ,
void *resp_buffer /* return */ ,
int *resp_bytes /* return */ ,
int resp_buffer_size, int bytes_last_response)
@@ -156,7 +156,7 @@ INKResponsePut(void **resp_id /* return
}
}
/* return NULL as the resp_id to indicate
- * if it is the last INKResponsePut call */
+ * if it is the last TSResponsePut call */
if (rid->bytes_not_sent <= 0 || rid->status_code != 200) {
free(rid);
*((RequestInfo **) resp_id) = NULL;
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/hello_world.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/hello_world.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/hello_world.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/hello_world.c Tue Nov 30 01:42:55 2010
@@ -32,10 +32,10 @@
#include "ServerAPI.h"
#include <stdio.h>
-/* INKPluginInit() must be provided */
+/* TSPluginInit() must be provided */
void
-INKPluginInit()
+TSPluginInit()
{
fprintf(stderr, "hello world???\n");
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process.c Tue Nov 30 01:42:55 2010
@@ -29,14 +29,14 @@
#include <stdio.h>
void
-INKPluginInit()
+TSPluginInit()
{
- fprintf(stderr, "*** INKOptionsProcess Test for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_OPTIONS_PROCESS);
+ fprintf(stderr, "*** TSOptionsProcess Test for Synthetic Server ***\n");
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS);
}
void
-INKOptionsProcess(char *option, char *value)
+TSOptionsProcess(char *option, char *value)
{
fprintf(stderr, "%s = %s\n", option, value);
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process_finish.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process_finish.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process_finish.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/options_process_finish.c Tue Nov 30 01:42:55 2010
@@ -29,14 +29,14 @@
#include <stdio.h>
void
-INKPluginInit()
+TSPluginInit()
{
- fprintf(stderr, "*** INKOptionsProcessFinish Test for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_OPTIONS_PROCESS_FINISH);
+ fprintf(stderr, "*** TSOptionsProcessFinish Test for Synthetic Server ***\n");
+ TSFuncRegister(TS_FID_OPTIONS_PROCESS_FINISH);
}
void
-INKOptionsProcessFinish()
+TSOptionsProcessFinish()
{
- fprintf(stderr, "\nINKOptionsProcessFinish\n\n");
+ fprintf(stderr, "\nTSOptionsProcessFinish\n\n");
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/plugin_finish.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/plugin_finish.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/plugin_finish.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/plugin_finish.c Tue Nov 30 01:42:55 2010
@@ -29,14 +29,14 @@
#include <stdio.h>
void
-INKPluginInit()
+TSPluginInit()
{
- fprintf(stderr, "*** INKPluginFinish Test for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_PLUGIN_FINISH);
+ fprintf(stderr, "*** TSPluginFinish Test for Synthetic Server ***\n");
+ TSFuncRegister(TS_FID_PLUGIN_FINISH);
}
void
-INKPluginFinish()
+TSPluginFinish()
{
- fprintf(stderr, "\nINKPluginFinish\n\n");
+ fprintf(stderr, "\nTSPluginFinish\n\n");
}
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/readme
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/readme?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/readme (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/readme Tue Nov 30 01:42:55 2010
@@ -5,7 +5,7 @@ hello_world.c
- Demonstrate the most basic routine of writing the SDKtest_server plugin
This example simply prints a statement to standard error within the
- INKPluginInit() to make sure that the plugin is successfully loaded
+ TSPluginInit() to make sure that the plugin is successfully loaded
when SDKtest_server starts running.
SimSynthServer.c
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/response_prepare.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/response_prepare.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/response_prepare.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/api/response_prepare.c Tue Nov 30 01:42:55 2010
@@ -31,14 +31,14 @@
#define FALSE 0
void
-INKPluginInit()
+TSPluginInit()
{
- fprintf(stderr, "*** INKResponsePrepare Test for Synthetic Server ***\n");
- INKFuncRegister(INK_FID_RESPONSE_PREPARE);
+ fprintf(stderr, "*** TSResponsePrepare Test for Synthetic Server ***\n");
+ TSFuncRegister(TS_FID_RESPONSE_PREPARE);
}
int
-INKResponsePrepare(char *request_header, int request_len, void **response_id)
+TSResponsePrepare(char *request_header, int request_len, void **response_id)
{
/* return FALSE implies that no response will be given from the plugin
Modified: trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/synth_server.c
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/synth_server.c?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/synth_server.c (original)
+++ trafficserver/traffic/branches/wccp/test/SDKtest/synth_server/synth_server.c Tue Nov 30 01:42:55 2010
@@ -217,9 +217,9 @@ typedef struct
PluginFinish plugin_finish_fcn;
ResponsePrepare response_prepare_fcn;
ResponsePut response_put_fcn;
-} INKPlugin;
+} TSPlugin;
-INKPlugin plug_in;
+TSPlugin plug_in;
void
plugin_initialize(char *api)
@@ -243,10 +243,10 @@ plugin_initialize(char *api)
perror("server plugin");
exit(1);
}
- plug_in.plugin_init_fcn = (PluginInit) dlsym(plug_in.handle, "INKPluginInit");
+ plug_in.plugin_init_fcn = (PluginInit) dlsym(plug_in.handle, "TSPluginInit");
if (!plug_in.plugin_init_fcn) {
- fprintf(stderr, "unable to find INKPluginInit function: %s", dlerror());
+ fprintf(stderr, "unable to find TSPluginInit function: %s", dlerror());
dlclose(plug_in.handle);
exit(1);
}
@@ -254,26 +254,26 @@ plugin_initialize(char *api)
}
void
-INKFuncRegister(INKPluginFuncId fid)
+TSFuncRegister(TSPluginFuncId fid)
{
switch (fid) {
- case INK_FID_OPTIONS_PROCESS:
- plug_in.options_process_fcn = (OptionsProcess) dlsym(plug_in.handle, "INKOptionsProcess");
+ case TS_FID_OPTIONS_PROCESS:
+ plug_in.options_process_fcn = (OptionsProcess) dlsym(plug_in.handle, "TSOptionsProcess");
break;
- case INK_FID_OPTIONS_PROCESS_FINISH:
- plug_in.options_process_finish_fcn = (OptionsProcessFinish) dlsym(plug_in.handle, "INKOptionsProcessFinish");
+ case TS_FID_OPTIONS_PROCESS_FINISH:
+ plug_in.options_process_finish_fcn = (OptionsProcessFinish) dlsym(plug_in.handle, "TSOptionsProcessFinish");
break;
- case INK_FID_PLUGIN_FINISH:
- plug_in.plugin_finish_fcn = (PluginFinish) dlsym(plug_in.handle, "INKPluginFinish");
+ case TS_FID_PLUGIN_FINISH:
+ plug_in.plugin_finish_fcn = (PluginFinish) dlsym(plug_in.handle, "TSPluginFinish");
break;
- case INK_FID_RESPONSE_PREPARE:
- plug_in.response_prepare_fcn = (ResponsePrepare) dlsym(plug_in.handle, "INKResponsePrepare");
+ case TS_FID_RESPONSE_PREPARE:
+ plug_in.response_prepare_fcn = (ResponsePrepare) dlsym(plug_in.handle, "TSResponsePrepare");
break;
- case INK_FID_RESPONSE_PUT:
- plug_in.response_put_fcn = (ResponsePut) dlsym(plug_in.handle, "INKResponsePut");
+ case TS_FID_RESPONSE_PUT:
+ plug_in.response_put_fcn = (ResponsePut) dlsym(plug_in.handle, "TSResponsePut");
break;
default:
- fprintf(stderr, "Can't register function: unknown type of INKPluginFuncId");
+ fprintf(stderr, "Can't register function: unknown type of TSPluginFuncId");
break;
}
}
Modified: trafficserver/traffic/branches/wccp/test/deft/docs/test_tool_docs.html
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/deft/docs/test_tool_docs.html?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/deft/docs/test_tool_docs.html (original)
+++ trafficserver/traffic/branches/wccp/test/deft/docs/test_tool_docs.html Tue Nov 30 01:42:55 2010
@@ -51,7 +51,7 @@ to create
<pre>[storage.config]</pre>
<p> With exception of <code>[records.config]</code>,
<code>[remap.config]</code>,
- <code>[filter.config]</code>, and <code>[meta]</code>
+ and <code>[meta]</code>
the contents between that tag and next
file tag (or end of file) are written verbatim
to a file of that name in that <b>run_dir</b>/config for that
@@ -78,14 +78,6 @@ to create
Example:</p>
<pre>map http://%%(ts1):&&(proxy.config.http.server_port)/ \
http://%%(load1):%%(load1:server)/ </pre>
- <p> <code>[filter.config]</code> section allows for the evaluation
- of perl expressions in writing the config file.
- The syntax is <pre>&&(eval|< perl expression >|)</pre>
- One use is to specify time based access control scheme.
- Example:</p>
- <pre>dest_ip=0.0.0.0-255.255.255.255 \
-time=&&(eval|{my \$t=time; my (\$s1,\$m1,\$h1)=localtime(\$t-3600); my (\$s2,\$m2,\$h2)=localtime(\$t+3600); "\$h1:\$m1-\$h2:\$m2"}|) \
-action=deny </pre>
<p> The <code>[meta]</code> sections is where the instantiator is
told about attributes that affect its work. The there is only
currently one option which is tell the instantiator to start up
@@ -103,7 +95,6 @@ run_manager: 1
<li> <b> rafPort </b> - RAF service port</b> </li>
<li> <b> tsHttpPort </b> - HTTP Proxy Port </b> </li>
<li> <b> tsRtspPort </b> - RTSP Proxy Port</b> </li>
- <li> <b> tsWmtPort </b> - WMT Proxy Port </li>
</ul>
</td>
</tr>
Modified: trafficserver/traffic/branches/wccp/test/deft/proc_manager.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/branches/wccp/test/deft/proc_manager.cc?rev=1040383&r1=1040382&r2=1040383&view=diff
==============================================================================
--- trafficserver/traffic/branches/wccp/test/deft/proc_manager.cc (original)
+++ trafficserver/traffic/branches/wccp/test/deft/proc_manager.cc Tue Nov 30 01:42:55 2010
@@ -51,9 +51,9 @@
#include "ParseRules.h"
#include "Ptr.h"
#include "Tokenizer.h"
-#define INK_LOCKFILE_INCLUDE_REDUCED
+#define TS_LOCKFILE_INCLUDE_REDUCED
#include "ink_lockfile.h"
-#undef INK_LOCKFILE_INCLUDE_REDUCED
+#undef TS_LOCKFILE_INCLUDE_REDUCED
/* Globals */
int num_active_process = 0;