You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/07/21 13:37:20 UTC

svn commit: r558311 - /webservices/axis2/trunk/c/include/

Author: dinesh
Date: Sat Jul 21 04:37:19 2007
New Revision: 558311

URL: http://svn.apache.org/viewvc?view=rev&rev=558311
Log:
added tcp headers

Added:
    webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h
    webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h~
    webservices/axis2/trunk/c/include/axis2_tcp_server.h
    webservices/axis2/trunk/c/include/axis2_tcp_server.h~
    webservices/axis2/trunk/c/include/axis2_tcp_svr_thread.h
    webservices/axis2/trunk/c/include/axis2_tcp_transport.h
    webservices/axis2/trunk/c/include/axis2_tcp_transport_sender.h
    webservices/axis2/trunk/c/include/axis2_tcp_worker.h
    webservices/axis2/trunk/c/include/axis2_tcp_worker.h~

Added: webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h (added)
+++ webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h Sat Jul 21 04:37:19 2007
@@ -0,0 +1,142 @@
+/*
+ * 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
+ *
+ *      tcp://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.
+ */
+
+#ifndef AXIS2_SIMPLE_HTTP_SVR_CONN_H
+#define AXIS2_SIMPLE_HTTP_SVR_CONN_H
+
+/**
+ * @ingroup axis2_core_transport_tcp
+ * @{
+ */
+
+
+/**
+ * @file axis2_simple_tcp_svr_conn.h
+ * @brief Axis2 simple tcp server connection
+ */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axutil_stream.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+    typedef struct axis2_simple_tcp_svr_conn axis2_simple_tcp_svr_conn_t;
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_close(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_is_open(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    
+    AXIS2_EXTERN axutil_stream_t* AXIS2_CALL
+    axis2_simple_tcp_svr_conn_get_stream(const axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_read_request(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @param timeout timeout
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_set_rcv_timeout(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env,
+        int timeout);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @param timeout timeout
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_set_snd_timeout(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env,
+        int timeout);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_get_svr_ip(const axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_get_peer_ip(const axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN void AXIS2_CALL
+    axis2_simple_tcp_svr_conn_free(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+
+    /**
+     * creates axis2_simple_tcp_svr_conn struct
+     * @param env pointer to environment struct
+     * @param sockfd sockfd
+     */
+    AXIS2_EXTERN axis2_simple_tcp_svr_conn_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_create(
+        const axutil_env_t *env, 
+        int sockfd);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif    /* AXIS2_SIMPLE_HTTP_SVR_CONN_H */

Added: webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h~
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h%7E?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h~ (added)
+++ webservices/axis2/trunk/c/include/axis2_simple_tcp_svr_conn.h~ Sat Jul 21 04:37:19 2007
@@ -0,0 +1,141 @@
+/*
+ * 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
+ *
+ *      tcp://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.
+ */
+
+#ifndef AXIS2_SIMPLE_HTTP_SVR_CONN_H
+#define AXIS2_SIMPLE_HTTP_SVR_CONN_H
+
+/**
+ * @ingroup axis2_core_transport_tcp
+ * @{
+ */
+
+
+/**
+ * @file axis2_simple_tcp_svr_conn.h
+ * @brief Axis2 simple tcp server connection
+ */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+    typedef struct axis2_simple_tcp_svr_conn axis2_simple_tcp_svr_conn_t;
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_close(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_is_open(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    
+    AXIS2_EXTERN axutil_stream_t* AXIS2_CALL
+    axis2_simple_tcp_svr_conn_get_stream(const axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_read_request(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @param timeout timeout
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_set_rcv_timeout(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env,
+        int timeout);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @param timeout timeout
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_simple_tcp_svr_conn_set_snd_timeout(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env,
+        int timeout);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_get_svr_ip(const axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_get_peer_ip(const axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_conn pointer to server connection struct
+     * @param env pointer to environment struct
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN void AXIS2_CALL
+    axis2_simple_tcp_svr_conn_free(axis2_simple_tcp_svr_conn_t *svr_conn,
+        const axutil_env_t *env);
+
+
+    /**
+     * creates axis2_simple_tcp_svr_conn struct
+     * @param env pointer to environment struct
+     * @param sockfd sockfd
+     */
+    AXIS2_EXTERN axis2_simple_tcp_svr_conn_t *AXIS2_CALL
+    axis2_simple_tcp_svr_conn_create(
+        const axutil_env_t *env, 
+        int sockfd);
+
+/** @} */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif    /* AXIS2_SIMPLE_HTTP_SVR_CONN_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_server.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_server.h?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_server.h (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_server.h Sat Jul 21 04:37:19 2007
@@ -0,0 +1,62 @@
+/*
+* 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.
+*/
+
+#ifndef AXIS2_TCP_SERVER_H
+#define AXIS2_TCP_SERVER_H
+
+/**
+ * @defgroup axis2_tcp_server tcp server
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+  * @file axis2_tcp_server.h
+  * @brief axis2 TCP Server implementation
+  */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axis2_conf_ctx.h>
+#include <axis2_transport_receiver.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+	
+
+    AXIS2_EXTERN axis2_transport_receiver_t *AXIS2_CALL
+    axis2_tcp_server_create (
+        const axutil_env_t *env,
+        const axis2_char_t *repo,
+        const int port);
+
+    axis2_status_t AXIS2_CALL
+    axis2_tcp_server_stop(
+        axis2_transport_receiver_t *server,
+        const axutil_env_t *env);
+
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_TCP_SERVER_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_server.h~
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_server.h%7E?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_server.h~ (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_server.h~ Sat Jul 21 04:37:19 2007
@@ -0,0 +1,62 @@
+/*
+* 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
+*
+*      tcp://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.
+*/
+
+#ifndef AXIS2_TCP_SERVER_H
+#define AXIS2_TCP_SERVER_H
+
+/**
+ * @defgroup axis2_tcp_server tcp server
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+  * @file axis2_tcp_server.h
+  * @brief axis2 TCP Server implementation
+  */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axis2_conf_ctx.h>
+#include <axis2_transport_receiver.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+	
+
+    AXIS2_EXTERN axis2_transport_receiver_t *AXIS2_CALL
+    axis2_tcp_server_create (
+        const axutil_env_t *env,
+        const axis2_char_t *repo,
+        const int port);
+
+    axis2_status_t AXIS2_CALL
+    axis2_tcp_server_stop(
+        axis2_transport_receiver_t *server,
+        const axutil_env_t *env);
+
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_TCP_SERVER_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_svr_thread.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_svr_thread.h?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_svr_thread.h (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_svr_thread.h Sat Jul 21 04:37:19 2007
@@ -0,0 +1,109 @@
+/*
+ * 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
+ *
+ *      tcp://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.
+ */
+
+#ifndef AXIS2_TCP_SVR_THREAD_H
+#define AXIS2_TCP_SVR_THREAD_H
+
+/**
+ * @defgroup axis2_tcp_svr_thread tcp server thread 
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+ * @file axis2_tcp_svr_thread.h
+ * @brief axis2 TCP server listning thread implementation
+ */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axis2_tcp_worker.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+    /** Type name for struct axist_tcp_svr_thread */
+    typedef struct axis2_tcp_svr_thread axis2_tcp_svr_thread_t;
+
+    /**
+     * @param svr_thread pointer to server thread
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_tcp_svr_thread_run(axis2_tcp_svr_thread_t *svr_thread,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_thread pointer to server thread
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_tcp_svr_thread_destroy(axis2_tcp_svr_thread_t *svr_thread,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_thread pointer to server thread
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN int AXIS2_CALL
+    axis2_tcp_svr_thread_get_local_port(const axis2_tcp_svr_thread_t *svr_thread,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_thread pointer to server thread
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+    axis2_tcp_svr_thread_is_running(axis2_tcp_svr_thread_t *svr_thread,
+        const axutil_env_t *env);
+
+    /**
+     * @param svr_thread pointer to server thread
+     * @param env pointer to environment struct
+     * @param worker pointer to worker
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_tcp_svr_thread_set_worker(axis2_tcp_svr_thread_t *svr_thread,
+        const axutil_env_t *env,
+        axis2_tcp_worker_t *worker);
+
+    /**
+     * @param svr_thread pointer to server thread
+     * @param env pointer to environment struct
+     */
+    AXIS2_EXTERN void AXIS2_CALL
+    axis2_tcp_svr_thread_free(axis2_tcp_svr_thread_t *svr_thread,
+        const axutil_env_t *env);
+
+    /**
+     * @param env pointer to environment struct
+     * @param port
+     */
+    AXIS2_EXTERN axis2_tcp_svr_thread_t *AXIS2_CALL
+    axis2_tcp_svr_thread_create (
+        const axutil_env_t *env,
+        int port);
+
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_TCP_SVR_THREAD_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_transport.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_transport.h?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_transport.h (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_transport.h Sat Jul 21 04:37:19 2007
@@ -0,0 +1,85 @@
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain count copy of the License at
+*
+*      tcp://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.
+*/
+
+#ifndef AXIS2_TCP_TRANSPORT_H
+#define AXIS2_TCP_TRANSPORT_H
+
+#include <axis2_const.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/** @defgroup axis2_core_trans_tcp tcp transport
+ * @ingroup axis2_transport
+ * Description.
+ * @{
+ */
+
+/**
+ * @defgroup axis2_core_transport_tcp core tcp transport
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+ * @brief TCP protocol and message context constants.
+ *
+ */
+#define AXIS2_TCP_OUT_TRANSPORT_INFO "TCPOutTransportInfo"
+/**
+ * PROTOCOL_VERSION
+ */
+#define AXIS2_TCP_PROTOCOL_VERSION "PROTOCOL"
+/**
+ * SOCKET
+ */
+#define AXIS2_SOCKET "SOCKET"
+
+/**
+ * HEADER_HOST
+ */
+#define AXIS2_TCP_HOST "Host"
+/**
+ * SO_TIMEOUT
+ */
+#define AXIS2_TCP_SO_TIMEOUT "SO_TIMEOUT"
+
+/**
+ * CONNECTION_TIMEOUT
+ */
+#define AXIS2_TCP_CONNECTION_TIMEOUT "CONNECTION_TIMEOUT"
+
+/**
+ * DEFAULT_SO_TIMEOUT
+ */
+#define AXIS2_TCP_DEFAULT_SO_TIMEOUT 60000
+
+/**
+ * DEFAULT_CONNECTION_TIMEOUT
+ */
+#define AXIS2_TCP_DEFAULT_CONNECTION_TIMEOUT 60000
+
+/**
+ * Field TRANSPORT_TCP
+ */
+#define AXIS2_TRANSPORT_TCP "tcp"
+
+#ifdef __cplusplus
+}
+#endif
+#endif                          /* AXIS2_TCP_TRANSPORT_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_transport_sender.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_transport_sender.h?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_transport_sender.h (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_transport_sender.h Sat Jul 21 04:37:19 2007
@@ -0,0 +1,58 @@
+/*
+ * 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
+ *
+ *      tcp://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.
+ */
+
+#ifndef AXIS2_HTTP_TRANSPORT_SENDER_H
+#define AXIS2_HTTP_TRANSPORT_SENDER_H
+
+/**
+ * @defgroup axis2_tcp_transport_sender tcp transport sender
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+ * @file axis2_tcp_transport_sender.h
+ * @brief axis2 HTTP Transport Sender (Handler) implementation
+ */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axis2_msg_ctx.h>
+#include <axis2_conf_ctx.h>
+#include <axis2_transport_out_desc.h>
+#include <axis2_transport_sender.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+    /**
+     * @param env pointer to environment struct 
+     */
+    AXIS2_EXTERN axis2_transport_sender_t *AXIS2_CALL
+    axis2_tcp_transport_sender_create(
+        const axutil_env_t *env);
+
+
+    /** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_HTTP_TRANSPORT_SENDER_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_worker.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_worker.h?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_worker.h (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_worker.h Sat Jul 21 04:37:19 2007
@@ -0,0 +1,90 @@
+/*
+ * 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
+ *
+ *      tcp://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.
+ */
+
+#ifndef AXIS2_TCP_WORKER_H
+#define AXIS2_TCP_WORKER_H
+
+/**
+ * @defgroup axis2_tcp_worker tcp worker
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+ * @file axis2_tcp_worker.h
+ * @brief axis2 TCP Worker
+ */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axis2_simple_tcp_svr_conn.h>
+#include <axis2_conf_ctx.h>
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+    /** Type name for struct axis2_tcp_worker */
+    typedef struct axis2_tcp_worker axis2_tcp_worker_t;
+
+    /**
+     * @param tcp_worker pointer to tcp worker
+     * @param env pointer to environment struct
+     * @param svr_conn pointer to svr conn
+     * @param simple_request pointer to simple request
+     */
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+    axis2_tcp_worker_process_request(axis2_tcp_worker_t *tcp_worker,
+        const axutil_env_t *env,
+        axis2_simple_tcp_svr_conn_t *svr_conn,
+        axis2_char_t *simple_request);
+
+    /**
+     * @param tcp_worker pointer to tcp worker
+     * @param env pointer to environment struct
+     * @param port
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_tcp_worker_set_svr_port(axis2_tcp_worker_t *tcp_worker,
+        const axutil_env_t *env,
+        int port);
+
+    /**
+     * @param tcp_worker pointer to tcp worker
+     * @param env pointer to environment strut
+     * @return void
+     */
+    AXIS2_EXTERN void AXIS2_CALL
+    axis2_tcp_worker_free(axis2_tcp_worker_t *tcp_worker,
+        const axutil_env_t *env);
+
+    /**
+     * @param env pointer to environment struct
+     * @param conf_ctx pointer to configuration context
+     */
+    AXIS2_EXTERN axis2_tcp_worker_t * AXIS2_CALL
+    axis2_tcp_worker_create (const axutil_env_t *env,
+        axis2_conf_ctx_t *conf_ctx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_TCP_WORKER_H */

Added: webservices/axis2/trunk/c/include/axis2_tcp_worker.h~
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_tcp_worker.h%7E?view=auto&rev=558311
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_tcp_worker.h~ (added)
+++ webservices/axis2/trunk/c/include/axis2_tcp_worker.h~ Sat Jul 21 04:37:19 2007
@@ -0,0 +1,92 @@
+/*
+ * 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
+ *
+ *      tcp://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.
+ */
+
+#ifndef AXIS2_TCP_WORKER_H
+#define AXIS2_TCP_WORKER_H
+
+/**
+ * @defgroup axis2_tcp_worker tcp worker
+ * @ingroup axis2_core_trans_tcp
+ * @{
+ */
+
+/**
+ * @file axis2_tcp_worker.h
+ * @brief axis2 TCP Worker
+ */
+
+#include <axis2_const.h>
+#include <axis2_defines.h>
+#include <axutil_env.h>
+#include <axis2_simple_tcp_svr_conn.h>
+#include <axis2_tcp_simple_response.h>
+#include <axis2_tcp_simple_request.h>
+#include <axis2_conf_ctx.h>
+
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+    /** Type name for struct axis2_tcp_worker */
+    typedef struct axis2_tcp_worker axis2_tcp_worker_t;
+
+    /**
+     * @param tcp_worker pointer to tcp worker
+     * @param env pointer to environment struct
+     * @param svr_conn pointer to svr conn
+     * @param simple_request pointer to simple request
+     */
+    AXIS2_EXTERN axis2_bool_t AXIS2_CALL
+    axis2_tcp_worker_process_request(axis2_tcp_worker_t *tcp_worker,
+        const axutil_env_t *env,
+        axis2_simple_tcp_svr_conn_t *svr_conn,
+        axis2_char_t *simple_request);
+
+    /**
+     * @param tcp_worker pointer to tcp worker
+     * @param env pointer to environment struct
+     * @param port
+     * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+     */
+    AXIS2_EXTERN axis2_status_t AXIS2_CALL
+    axis2_tcp_worker_set_svr_port(axis2_tcp_worker_t *tcp_worker,
+        const axutil_env_t *env,
+        int port);
+
+    /**
+     * @param tcp_worker pointer to tcp worker
+     * @param env pointer to environment strut
+     * @return void
+     */
+    AXIS2_EXTERN void AXIS2_CALL
+    axis2_tcp_worker_free(axis2_tcp_worker_t *tcp_worker,
+        const axutil_env_t *env);
+
+    /**
+     * @param env pointer to environment struct
+     * @param conf_ctx pointer to configuration context
+     */
+    AXIS2_EXTERN axis2_tcp_worker_t * AXIS2_CALL
+    axis2_tcp_worker_create (const axutil_env_t *env,
+        axis2_conf_ctx_t *conf_ctx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif                          /* AXIS2_TCP_WORKER_H */



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org