You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2011/11/09 02:30:50 UTC
svn commit: r1199589 - in /trafficserver/plugins/trunk/hipes: Makefile
gen_escape.c hipes.cc
Author: zwoop
Date: Wed Nov 9 01:30:50 2011
New Revision: 1199589
URL: http://svn.apache.org/viewvc?rev=1199589&view=rev
Log:
Add license etc.
Added:
trafficserver/plugins/trunk/hipes/Makefile
Modified:
trafficserver/plugins/trunk/hipes/gen_escape.c
trafficserver/plugins/trunk/hipes/hipes.cc
Added: trafficserver/plugins/trunk/hipes/Makefile
URL: http://svn.apache.org/viewvc/trafficserver/plugins/trunk/hipes/Makefile?rev=1199589&view=auto
==============================================================================
--- trafficserver/plugins/trunk/hipes/Makefile (added)
+++ trafficserver/plugins/trunk/hipes/Makefile Wed Nov 9 01:30:50 2011
@@ -0,0 +1,26 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+TSXS?=tsxs
+
+all: hipes.cc
+ $(TSXS) -v -C $? -o hipes.so
+
+install:
+ $(TSXS) -i -o hipes.so
+
+clean:
+ rm -f *.lo *.so *.bz2 *.asc *.md5 *.sha1
Modified: trafficserver/plugins/trunk/hipes/gen_escape.c
URL: http://svn.apache.org/viewvc/trafficserver/plugins/trunk/hipes/gen_escape.c?rev=1199589&r1=1199588&r2=1199589&view=diff
==============================================================================
--- trafficserver/plugins/trunk/hipes/gen_escape.c (original)
+++ trafficserver/plugins/trunk/hipes/gen_escape.c Wed Nov 9 01:30:50 2011
@@ -1,3 +1,23 @@
+/** @file
+
+ @section license License
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
#include <stdio.h>
#include <string.h>
@@ -26,5 +46,4 @@ int main() {
if (!((hex+1) % 4))
printf("\n");
}
-
}
Modified: trafficserver/plugins/trunk/hipes/hipes.cc
URL: http://svn.apache.org/viewvc/trafficserver/plugins/trunk/hipes/hipes.cc?rev=1199589&r1=1199588&r2=1199589&view=diff
==============================================================================
--- trafficserver/plugins/trunk/hipes/hipes.cc (original)
+++ trafficserver/plugins/trunk/hipes/hipes.cc Wed Nov 9 01:30:50 2011
@@ -1,3 +1,24 @@
+/** @file
+
+ @section license License
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
//////////////////////////////////////////////////////////////////////////////////////////////
// hipes: plugin for the HIPES services.
// ------
@@ -25,7 +46,7 @@ static char UNUSED rcsId__url_remap_cc[]
#include <ts/remap.h>
#include <ts/ts.h>
-const char* HIPES_SERVER_NAME="hipes.yimg.com";
+const char* HIPES_SERVER_NAME="hipes.example.com";
///////////////////////////////////////////////////////////////////////////////
@@ -130,10 +151,10 @@ unescapify(const char* src, char* dst, i
//
struct HIPESService
{
- HIPESService() :
- url_param("url"), path(""), svc_server(""), svc_port(80), ssl(false), hipes_server(HIPES_SERVER_NAME),
- hipes_port(80), default_redirect_flag(1), x_hipes_header("X-HIPES-Redirect"),
- active_timeout(-1), no_activity_timeout(-1), connect_timeout(-1), dns_timeout(-1)
+ HIPESService()
+ : url_param("url"), path(""), svc_server(""), svc_port(80), ssl(false), hipes_server(HIPES_SERVER_NAME),
+ hipes_port(80), default_redirect_flag(1), x_hipes_header("X-HIPES-Redirect"),
+ active_timeout(-1), no_activity_timeout(-1), connect_timeout(-1), dns_timeout(-1)
{ };
std::string url_param;