Correct props.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 24 Oct 2006 03:10:47 +0000 (03:10 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 24 Oct 2006 03:10:47 +0000 (03:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@467212 13f79535-47bb-0310-9956-ffa450edef68

native/connector/src/address.c
native/connector/src/multicast.c
native/connector/src/thread.c
native/connector/srclib/VERSIONS

index 36890c4..b2291fa 100644 (file)
-/* Licensed to the Apache Software Foundation (ASF) under one or more\r
- * contributor license agreements.  See the NOTICE file distributed with\r
- * this work for additional information regarding copyright ownership.\r
- * The ASF licenses this file to You under the Apache License, Version 2.0\r
- * (the "License"); you may not use this file except in compliance with\r
- * the License.  You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/*\r
- *\r
- * @author Mladen Turk\r
- * @version $Revision: 416783 $, $Date: 2006-06-23 20:06:15 +0200 (pet, 23 lip 2006) $\r
- */\r
-\r
-#include "tcn.h"\r
-\r
-TCN_IMPLEMENT_CALL(jlong, Address, info)(TCN_STDARGS,\r
-                                         jstring hostname,\r
-                                         jint family, jint port,\r
-                                         jint flags, jlong pool)\r
-{\r
-    apr_pool_t *p = J2P(pool, apr_pool_t *);\r
-    TCN_ALLOC_CSTRING(hostname);\r
-    apr_sockaddr_t *sa = NULL;\r
-    apr_int32_t f;\r
-\r
-\r
-    UNREFERENCED(o);\r
-    GET_S_FAMILY(f, family);\r
-    TCN_THROW_IF_ERR(apr_sockaddr_info_get(&sa,\r
-            J2S(hostname), f, (apr_port_t)port,\r
-            (apr_int32_t)flags, p), sa);\r
-\r
-cleanup:\r
-    TCN_FREE_CSTRING(hostname);\r
-    return P2J(sa);\r
-}\r
-\r
-TCN_IMPLEMENT_CALL(jstring, Address, getnameinfo)(TCN_STDARGS,\r
-                                                  jlong sa, jint flags)\r
-{\r
-    apr_sockaddr_t *s = J2P(sa, apr_sockaddr_t *);\r
-    char *hostname;\r
-\r
-    UNREFERENCED(o);\r
-    if (apr_getnameinfo(&hostname, s, (apr_int32_t)flags) == APR_SUCCESS)\r
-        return AJP_TO_JSTRING(hostname);\r
-    else\r
-        return NULL;\r
-}\r
-\r
-TCN_IMPLEMENT_CALL(jstring, Address, getip)(TCN_STDARGS, jlong sa)\r
-{\r
-    apr_sockaddr_t *s = J2P(sa, apr_sockaddr_t *);\r
-    char *ipaddr;\r
-\r
-    UNREFERENCED(o);\r
-    if (apr_sockaddr_ip_get(&ipaddr, s) == APR_SUCCESS)\r
-        return AJP_TO_JSTRING(ipaddr);\r
-    else\r
-        return NULL;\r
-}\r
-\r
-TCN_IMPLEMENT_CALL(jlong, Address, get)(TCN_STDARGS, jint which,\r
-                                        jlong sock)\r
-{\r
-    tcn_socket_t *s = J2P(sock, tcn_socket_t *);\r
-    apr_sockaddr_t *sa = NULL;\r
-\r
-    UNREFERENCED(o);\r
-    TCN_THROW_IF_ERR(apr_socket_addr_get(&sa,\r
-                        (apr_interface_e)which, s->sock), sa);\r
-cleanup:\r
-    return P2J(sa);\r
-}\r
-\r
-TCN_IMPLEMENT_CALL(jint, Address, equal)(TCN_STDARGS,\r
-                                         jlong a, jlong b)\r
-{\r
-    apr_sockaddr_t *sa = J2P(a, apr_sockaddr_t *);\r
-    apr_sockaddr_t *sb = J2P(b, apr_sockaddr_t *);\r
-\r
-    UNREFERENCED_STDARGS;\r
-    return apr_sockaddr_equal(sa, sb) ? JNI_TRUE : JNI_FALSE;\r
-}\r
-\r
-TCN_IMPLEMENT_CALL(jint, Address, getservbyname)(TCN_STDARGS,\r
-                                                 jlong sa, jstring servname)\r
-{\r
-    apr_sockaddr_t *s = J2P(sa, apr_sockaddr_t *);\r
-    TCN_ALLOC_CSTRING(servname);\r
-    apr_status_t rv;\r
-\r
-    UNREFERENCED(o);\r
-    rv = apr_getservbyname(s, J2S(servname));\r
-    TCN_FREE_CSTRING(servname);\r
-    return (jint)rv;\r
-}\r
+/* 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.
+ */
+
+/*
+ *
+ * @author Mladen Turk
+ * @version $Revision$, $Date$
+ */
+
+#include "tcn.h"
+
+TCN_IMPLEMENT_CALL(jlong, Address, info)(TCN_STDARGS,
+                                         jstring hostname,
+                                         jint family, jint port,
+                                         jint flags, jlong pool)
+{
+    apr_pool_t *p = J2P(pool, apr_pool_t *);
+    TCN_ALLOC_CSTRING(hostname);
+    apr_sockaddr_t *sa = NULL;
+    apr_int32_t f;
+
+
+    UNREFERENCED(o);
+    GET_S_FAMILY(f, family);
+    TCN_THROW_IF_ERR(apr_sockaddr_info_get(&sa,
+            J2S(hostname), f, (apr_port_t)port,
+            (apr_int32_t)flags, p), sa);
+
+cleanup:
+    TCN_FREE_CSTRING(hostname);
+    return P2J(sa);
+}
+
+TCN_IMPLEMENT_CALL(jstring, Address, getnameinfo)(TCN_STDARGS,
+                                                  jlong sa, jint flags)
+{
+    apr_sockaddr_t *s = J2P(sa, apr_sockaddr_t *);
+    char *hostname;
+
+    UNREFERENCED(o);
+    if (apr_getnameinfo(&hostname, s, (apr_int32_t)flags) == APR_SUCCESS)
+        return AJP_TO_JSTRING(hostname);
+    else
+        return NULL;
+}
+
+TCN_IMPLEMENT_CALL(jstring, Address, getip)(TCN_STDARGS, jlong sa)
+{
+    apr_sockaddr_t *s = J2P(sa, apr_sockaddr_t *);
+    char *ipaddr;
+
+    UNREFERENCED(o);
+    if (apr_sockaddr_ip_get(&ipaddr, s) == APR_SUCCESS)
+        return AJP_TO_JSTRING(ipaddr);
+    else
+        return NULL;
+}
+
+TCN_IMPLEMENT_CALL(jlong, Address, get)(TCN_STDARGS, jint which,
+                                        jlong sock)
+{
+    tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    apr_sockaddr_t *sa = NULL;
+
+    UNREFERENCED(o);
+    TCN_THROW_IF_ERR(apr_socket_addr_get(&sa,
+                        (apr_interface_e)which, s->sock), sa);
+cleanup:
+    return P2J(sa);
+}
+
+TCN_IMPLEMENT_CALL(jint, Address, equal)(TCN_STDARGS,
+                                         jlong a, jlong b)
+{
+    apr_sockaddr_t *sa = J2P(a, apr_sockaddr_t *);
+    apr_sockaddr_t *sb = J2P(b, apr_sockaddr_t *);
+
+    UNREFERENCED_STDARGS;
+    return apr_sockaddr_equal(sa, sb) ? JNI_TRUE : JNI_FALSE;
+}
+
+TCN_IMPLEMENT_CALL(jint, Address, getservbyname)(TCN_STDARGS,
+                                                 jlong sa, jstring servname)
+{
+    apr_sockaddr_t *s = J2P(sa, apr_sockaddr_t *);
+    TCN_ALLOC_CSTRING(servname);
+    apr_status_t rv;
+
+    UNREFERENCED(o);
+    rv = apr_getservbyname(s, J2S(servname));
+    TCN_FREE_CSTRING(servname);
+    return (jint)rv;
+}
index 5cf5d78..7691578 100644 (file)
@@ -1,72 +1,72 @@
-/* Licensed to the Apache Software Foundation (ASF) under one or more\r
- * contributor license agreements.  See the NOTICE file distributed with\r
- * this work for additional information regarding copyright ownership.\r
- * The ASF licenses this file to You under the Apache License, Version 2.0\r
- * (the "License"); you may not use this file except in compliance with\r
- * the License.  You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/*\r
- *\r
- * @author Mladen Turk\r
- * @version $Revision: 416783 $, $Date: 2006-06-23 20:06:15 +0200 (pet, 23 lip 2006) $\r
- */\r
-\r
-#include "tcn.h"\r
-\r
-TCN_IMPLEMENT_CALL(jint, Mulicast, join)(TCN_STDARGS,\r
-                                         jlong sock, jlong join,\r
-                                         jlong iface, jlong source)\r
-{\r
-    tcn_socket_t *s = J2P(sock, tcn_socket_t *);\r
-    apr_sockaddr_t *ja = J2P(join, apr_sockaddr_t *);\r
-    apr_sockaddr_t *ia = J2P(iface, apr_sockaddr_t *);\r
-    apr_sockaddr_t *sa = J2P(source, apr_sockaddr_t *);\r
-    UNREFERENCED_STDARGS;\r
-    return (jint)apr_mcast_join(s->sock, ja, ia, sa);\r
-};\r
-\r
-TCN_IMPLEMENT_CALL(jint, Mulicast, leave)(TCN_STDARGS,\r
-                                          jlong sock, jlong addr,\r
-                                          jlong iface, jlong source)\r
-{\r
-    tcn_socket_t *s = J2P(sock, tcn_socket_t *);\r
-    apr_sockaddr_t *aa = J2P(addr, apr_sockaddr_t *);\r
-    apr_sockaddr_t *ia = J2P(iface, apr_sockaddr_t *);\r
-    apr_sockaddr_t *sa = J2P(source, apr_sockaddr_t *);\r
-    UNREFERENCED_STDARGS;\r
-    return (jint)apr_mcast_leave(s->sock, aa, ia, sa);\r
-};\r
-\r
-TCN_IMPLEMENT_CALL(jint, Mulicast, hops)(TCN_STDARGS,\r
-                                         jlong sock, jint ttl)\r
-{\r
-    tcn_socket_t *s = J2P(sock, tcn_socket_t *);\r
-    UNREFERENCED_STDARGS;\r
-    return (jint)apr_mcast_hops(s->sock, (apr_byte_t)ttl);\r
-};\r
-\r
-TCN_IMPLEMENT_CALL(jint, Mulicast, loopback)(TCN_STDARGS,\r
-                                             jlong sock, jboolean opt)\r
-{\r
-    tcn_socket_t *s = J2P(sock, tcn_socket_t *);\r
-    UNREFERENCED_STDARGS;\r
-    return (jint)apr_mcast_loopback(s->sock, opt == JNI_TRUE ? 1 : 0);\r
-};\r
-\r
-TCN_IMPLEMENT_CALL(jint, Mulicast, ointerface)(TCN_STDARGS,\r
-                                               jlong sock, jlong iface)\r
-{\r
-    tcn_socket_t *s = J2P(sock, tcn_socket_t *);\r
-    apr_sockaddr_t *ia = J2P(iface, apr_sockaddr_t *);\r
-    UNREFERENCED_STDARGS;\r
-    return (jint)apr_mcast_interface(s->sock, ia);\r
-};\r
+/* 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.
+ */
+
+/*
+ *
+ * @author Mladen Turk
+ * @version $Revision$, $Date$
+ */
+
+#include "tcn.h"
+
+TCN_IMPLEMENT_CALL(jint, Mulicast, join)(TCN_STDARGS,
+                                         jlong sock, jlong join,
+                                         jlong iface, jlong source)
+{
+    tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    apr_sockaddr_t *ja = J2P(join, apr_sockaddr_t *);
+    apr_sockaddr_t *ia = J2P(iface, apr_sockaddr_t *);
+    apr_sockaddr_t *sa = J2P(source, apr_sockaddr_t *);
+    UNREFERENCED_STDARGS;
+    return (jint)apr_mcast_join(s->sock, ja, ia, sa);
+};
+
+TCN_IMPLEMENT_CALL(jint, Mulicast, leave)(TCN_STDARGS,
+                                          jlong sock, jlong addr,
+                                          jlong iface, jlong source)
+{
+    tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    apr_sockaddr_t *aa = J2P(addr, apr_sockaddr_t *);
+    apr_sockaddr_t *ia = J2P(iface, apr_sockaddr_t *);
+    apr_sockaddr_t *sa = J2P(source, apr_sockaddr_t *);
+    UNREFERENCED_STDARGS;
+    return (jint)apr_mcast_leave(s->sock, aa, ia, sa);
+};
+
+TCN_IMPLEMENT_CALL(jint, Mulicast, hops)(TCN_STDARGS,
+                                         jlong sock, jint ttl)
+{
+    tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    UNREFERENCED_STDARGS;
+    return (jint)apr_mcast_hops(s->sock, (apr_byte_t)ttl);
+};
+
+TCN_IMPLEMENT_CALL(jint, Mulicast, loopback)(TCN_STDARGS,
+                                             jlong sock, jboolean opt)
+{
+    tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    UNREFERENCED_STDARGS;
+    return (jint)apr_mcast_loopback(s->sock, opt == JNI_TRUE ? 1 : 0);
+};
+
+TCN_IMPLEMENT_CALL(jint, Mulicast, ointerface)(TCN_STDARGS,
+                                               jlong sock, jlong iface)
+{
+    tcn_socket_t *s = J2P(sock, tcn_socket_t *);
+    apr_sockaddr_t *ia = J2P(iface, apr_sockaddr_t *);
+    UNREFERENCED_STDARGS;
+    return (jint)apr_mcast_interface(s->sock, ia);
+};
index e619319..e074ff4 100644 (file)
@@ -1,29 +1,29 @@
-/* Licensed to the Apache Software Foundation (ASF) under one or more\r
- * contributor license agreements.  See the NOTICE file distributed with\r
- * this work for additional information regarding copyright ownership.\r
- * The ASF licenses this file to You under the Apache License, Version 2.0\r
- * (the "License"); you may not use this file except in compliance with\r
- * the License.  You may obtain a copy of the License at\r
- *\r
- *     http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/*\r
- *\r
- * @author Mladen Turk\r
- * @version $Revision: 393735 $, $Date: 2006-04-13 08:41:49 +0200 (čet, 13 tra 2006) $\r
- */\r
-\r
-#include "tcn.h"\r
-\r
-TCN_IMPLEMENT_CALL(jlong, Thread, current)(TCN_STDARGS)\r
-{\r
-    UNREFERENCED_STDARGS;\r
-    return (jlong)((unsigned long)apr_os_thread_current());\r
-}\r
+/* 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.
+ */
+
+/*
+ *
+ * @author Mladen Turk
+ * @version $Revision$, $Date$
+ */
+
+#include "tcn.h"
+
+TCN_IMPLEMENT_CALL(jlong, Thread, current)(TCN_STDARGS)
+{
+    UNREFERENCED_STDARGS;
+    return (jlong)((unsigned long)apr_os_thread_current());
+}
index d3b475e..e089838 100644 (file)
@@ -1,4 +1,4 @@
-Use the following version of the libraries\r
-\r
-- APR 1.2.7, http://apr.apache.org\r
-- OpenSSL 0.9.8d, http://www.openssl.org\r
+Use the following version of the libraries
+
+- APR 1.2.7, http://apr.apache.org
+- OpenSSL 0.9.8d, http://www.openssl.org