Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 95726 invoked from network); 23 Jul 2007 06:15:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jul 2007 06:15:32 -0000 Received: (qmail 78649 invoked by uid 500); 23 Jul 2007 06:15:33 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 78532 invoked by uid 500); 23 Jul 2007 06:15:33 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 78521 invoked by uid 500); 23 Jul 2007 06:15:32 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 78518 invoked by uid 99); 23 Jul 2007 06:15:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2007 23:15:32 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jul 2007 23:15:30 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 712CC1A981A; Sun, 22 Jul 2007 23:15:10 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r558619 - in /webservices/axis2/trunk/c/src/core/transport/tcp: axis2_simple_tcp_svr_conn.h axis2_tcp_server.h axis2_tcp_svr_thread.h axis2_tcp_transport.h axis2_tcp_transport_sender.h axis2_tcp_worker.h Date: Mon, 23 Jul 2007 06:15:10 -0000 To: axis2-cvs@ws.apache.org From: dinesh@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070723061510.712CC1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dinesh Date: Sun Jul 22 23:15:09 2007 New Revision: 558619 URL: http://svn.apache.org/viewvc?view=rev&rev=558619 Log: moved tcp headers to tcp folder Added: webservices/axis2/trunk/c/src/core/transport/tcp/axis2_simple_tcp_svr_conn.h webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_server.h webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_svr_thread.h webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport.h webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport_sender.h webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_worker.h Added: webservices/axis2/trunk/c/src/core/transport/tcp/axis2_simple_tcp_svr_conn.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/axis2_simple_tcp_svr_conn.h?view=auto&rev=558619 ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/axis2_simple_tcp_svr_conn.h (added) +++ webservices/axis2/trunk/c/src/core/transport/tcp/axis2_simple_tcp_svr_conn.h Sun Jul 22 23:15:09 2007 @@ -0,0 +1,140 @@ +/* + * 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 +#include +#include +#include + +#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/src/core/transport/tcp/axis2_tcp_server.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_server.h?view=auto&rev=558619 ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_server.h (added) +++ webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_server.h Sun Jul 22 23:15:09 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 +#include +#include +#include +#include + +#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/src/core/transport/tcp/axis2_tcp_svr_thread.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_svr_thread.h?view=auto&rev=558619 ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_svr_thread.h (added) +++ webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_svr_thread.h Sun Jul 22 23:15:09 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 + * + * 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_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 +#include +#include +#include + +#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/src/core/transport/tcp/axis2_tcp_transport.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport.h?view=auto&rev=558619 ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport.h (added) +++ webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport.h Sun Jul 22 23:15:09 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 +* +* 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_TRANSPORT_H +#define AXIS2_TCP_TRANSPORT_H + +#include + +#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/src/core/transport/tcp/axis2_tcp_transport_sender.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport_sender.h?view=auto&rev=558619 ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport_sender.h (added) +++ webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_transport_sender.h Sun Jul 22 23:15:09 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 + * + * 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_TRANSPORT_SENDER_H +#define AXIS2_TCP_TRANSPORT_SENDER_H + +/** + * @defgroup axis2_tcp_transport_sender tcp transport sender + * @ingroup axis2_core_trans_tcp + * @{ + */ + +/** + * @file axis2_tcp_transport_sender.h + * @brief axis2 TCP Transport Sender (Handler) implementation + */ + +#include +#include +#include +#include +#include +#include +#include + +#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_TCP_TRANSPORT_SENDER_H */ Added: webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_worker.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_worker.h?view=auto&rev=558619 ============================================================================== --- webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_worker.h (added) +++ webservices/axis2/trunk/c/src/core/transport/tcp/axis2_tcp_worker.h Sun Jul 22 23:15:09 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 +#include +#include +#include +#include + + +#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