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 sa...@apache.org on 2006/01/16 12:23:00 UTC
svn commit: r369433 - in /webservices/axis2/trunk/c/modules/core/transport:
axis2_transport_receiver.h axis2_transport_sender.h
http/receiver/http_server.c
Author: samisa
Date: Mon Jan 16 03:22:48 2006
New Revision: 369433
URL: http://svn.apache.org/viewcvs?rev=369433&view=rev
Log:
DLL functionality
Modified:
webservices/axis2/trunk/c/modules/core/transport/axis2_transport_receiver.h
webservices/axis2/trunk/c/modules/core/transport/axis2_transport_sender.h
webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
Modified: webservices/axis2/trunk/c/modules/core/transport/axis2_transport_receiver.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/axis2_transport_receiver.h?rev=369433&r1=369432&r2=369433&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/axis2_transport_receiver.h (original)
+++ webservices/axis2/trunk/c/modules/core/transport/axis2_transport_receiver.h Mon Jan 16 03:22:48 2006
@@ -29,16 +29,18 @@
#include <axis2_allocator.h>
#include <axis2_endpoint_ref.h>
#include <axis2_ctx.h>
-
#include <axis2_wsdl.h>
+#include <axis2_conf_ctx.h>
+
+
#ifdef __cplusplus
extern "C"
{
#endif
-struct axis2_transport_receiver;
-struct axis2_ctx;
+struct axis2_conf_ctx;
+struct axis2_transport_in_desc;
typedef struct axis2_transport_receiver axis2_transport_receiver_t;
typedef struct axis2_transport_receiver_ops axis2_transport_receiver_ops_t;
@@ -66,16 +68,16 @@
axis2_status_t (AXIS2_CALL *stop)(
axis2_transport_receiver_t *transport_receiver,
axis2_env_t **env);
- axis2_endpoint_ref_t* (AXIS2_CALL *reply_to_epr)(
+ axis2_endpoint_ref_t* (AXIS2_CALL *get_reply_to_epr)(
axis2_transport_receiver_t *transport_receiver,
axis2_env_t **env,
axis2_char_t *svc_name);
- axis2_status_t (AXIS2_CALL *
- init) (axis2_transport_receiver_t *transport_receiver,
- axis2_env_t **env,
- struct axis2_ctx *conf_ctx,
- struct axis2_transport_in_desc *transport_in);
+ axis2_status_t (AXIS2_CALL *init)
+ (axis2_transport_receiver_t *transport_receiver,
+ axis2_env_t **env,
+ struct axis2_conf_ctx *conf_ctx,
+ struct axis2_transport_in_desc *transport_in);
};
/**
@@ -86,12 +88,6 @@
axis2_transport_receiver_ops_t *ops;
};
-/**
- * Creates transport receiver struct
- * @return pointer to newly created transport receiver
- */
-AXIS2_DECLARE(axis2_transport_receiver_t *)
-axis2_transport_receiver_create (axis2_env_t **env);
/*************************** Function macros **********************************/
Modified: webservices/axis2/trunk/c/modules/core/transport/axis2_transport_sender.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/axis2_transport_sender.h?rev=369433&r1=369432&r2=369433&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/axis2_transport_sender.h (original)
+++ webservices/axis2/trunk/c/modules/core/transport/axis2_transport_sender.h Mon Jan 16 03:22:48 2006
@@ -79,7 +79,7 @@
* @param msgContext
* @throws org.apache.axis2.AxisFault
*/
- axis2_status_t (AXIS2_CALL *
+ axis2_status_t (AXIS2_CALL *
cleanup) (axis2_transport_sender_t *transport_sender,
axis2_env_t **env,
struct axis2_msg_ctx *msg_ctx);
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c?rev=369433&r1=369432&r2=369433&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/http_server.c Mon Jan 16 03:22:48 2006
@@ -30,7 +30,7 @@
struct axis2_http_server_impl
{
- axis2_http_server_t http_server;
+ axis2_transport_receiver_t http_server;
axis2_http_svr_thread_t *svr_thread;
int port;
axis2_conf_ctx_t* conf_ctx;
@@ -41,31 +41,33 @@
/***************************** Function servers *******************************/
axis2_status_t AXIS2_CALL
-axis2_http_server_init(axis2_http_server_t *server, axis2_env_t **env,
+axis2_http_server_init(axis2_transport_receiver_t *server, axis2_env_t **env,
axis2_conf_ctx_t *conf_ctx,
axis2_transport_in_desc_t *in_desc);
axis2_status_t AXIS2_CALL
-axis2_http_server_start(axis2_http_server_t *server, axis2_env_t **env);
+axis2_http_server_start(axis2_transport_receiver_t *server, axis2_env_t **env);
axis2_status_t AXIS2_CALL
-axis2_http_server_stop(axis2_http_server_t *server, axis2_env_t **env);
+axis2_http_server_stop(axis2_transport_receiver_t *server, axis2_env_t **env);
axis2_conf_ctx_t* AXIS2_CALL
-axis2_http_server_get_conf_ctx (axis2_http_server_t *server, axis2_env_t **env);
+axis2_http_server_get_conf_ctx (axis2_transport_receiver_t *server,
+ axis2_env_t **env);
axis2_endpoint_ref_t* AXIS2_CALL
-axis2_http_server_get_reply_to_epr(axis2_http_server_t *server,
+axis2_http_server_get_reply_to_epr(axis2_transport_receiver_t *server,
axis2_env_t **env, axis2_char_t *svc_name);
axis2_bool_t AXIS2_CALL
-axis2_http_server_is_running (axis2_http_server_t *server, axis2_env_t **env);
+axis2_http_server_is_running (axis2_transport_receiver_t *server,
+ axis2_env_t **env);
axis2_status_t AXIS2_CALL
-axis2_http_server_free (axis2_http_server_t *server, axis2_env_t **env);
+axis2_http_server_free (axis2_transport_receiver_t *server, axis2_env_t **env);
/***************************** End of function servers ************************/
-AXIS2_DECLARE(axis2_http_server_t *)
+AXIS2_DECLARE(axis2_transport_receiver_t *)
axis2_http_server_create (axis2_env_t **env, axis2_char_t *repo, int port)
{
AXIS2_ENV_CHECK(env, NULL);
@@ -85,27 +87,24 @@
server_impl->port = port;
server_impl->http_server.ops = AXIS2_MALLOC((*env)->allocator,
- sizeof(axis2_http_server_ops_t));
+ sizeof(axis2_transport_receiver_ops_t));
if(NULL == server_impl->http_server.ops)
{
- axis2_http_server_free((axis2_http_server_t*) server_impl, env);
+ axis2_http_server_free((axis2_transport_receiver_t*) server_impl, env);
AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
server_impl->conf_ctx = build_conf_ctx(env, repo);
if(NULL == server_impl->conf_ctx)
{
- axis2_http_server_free((axis2_http_server_t*) server_impl, env);
+ axis2_http_server_free((axis2_transport_receiver_t*) server_impl, env);
return NULL;
}
server_impl->http_server.ops->init = axis2_http_server_init;
server_impl->http_server.ops->start = axis2_http_server_start;
server_impl->http_server.ops->stop = axis2_http_server_stop;
- server_impl->http_server.ops->get_conf_ctx = axis2_http_server_get_conf_ctx;
server_impl->http_server.ops->get_reply_to_epr =
axis2_http_server_get_reply_to_epr;
- server_impl->http_server.ops->is_running =
- axis2_http_server_is_running;
server_impl->http_server.ops->free = axis2_http_server_free;
return &(server_impl->http_server);
@@ -113,7 +112,7 @@
axis2_status_t AXIS2_CALL
-axis2_http_server_free (axis2_http_server_t *server, axis2_env_t **env)
+axis2_http_server_free (axis2_transport_receiver_t *server, axis2_env_t **env)
{
axis2_http_server_impl_t *server_impl = NULL;
AXIS2_FUNC_PARAM_CHECK(server, env, AXIS2_FAILURE);
@@ -139,7 +138,7 @@
axis2_status_t AXIS2_CALL
-axis2_http_server_init(axis2_http_server_t *server, axis2_env_t **env,
+axis2_http_server_init(axis2_transport_receiver_t *server, axis2_env_t **env,
axis2_conf_ctx_t *conf_ctx,
axis2_transport_in_desc_t *in_desc)
{
@@ -161,7 +160,7 @@
axis2_status_t AXIS2_CALL
-axis2_http_server_start(axis2_http_server_t *server, axis2_env_t **env)
+axis2_http_server_start(axis2_transport_receiver_t *server, axis2_env_t **env)
{
axis2_http_server_impl_t *server_impl = NULL;
@@ -190,7 +189,7 @@
axis2_status_t AXIS2_CALL
-axis2_http_server_stop(axis2_http_server_t *server, axis2_env_t **env)
+axis2_http_server_stop(axis2_transport_receiver_t *server, axis2_env_t **env)
{
AXIS2_FUNC_PARAM_CHECK(server, env, AXIS2_FAILURE);
@@ -207,14 +206,15 @@
}
axis2_conf_ctx_t* AXIS2_CALL
-axis2_http_server_get_conf_ctx (axis2_http_server_t *server, axis2_env_t **env)
+axis2_http_server_get_conf_ctx (axis2_transport_receiver_t *server,
+ axis2_env_t **env)
{
AXIS2_FUNC_PARAM_CHECK(server, env, NULL);
return AXIS2_INTF_TO_IMPL(server)->conf_ctx;
}
axis2_endpoint_ref_t* AXIS2_CALL
-axis2_http_server_get_reply_to_epr(axis2_http_server_t *server,
+axis2_http_server_get_reply_to_epr(axis2_transport_receiver_t *server,
axis2_env_t **env, axis2_char_t *svc_name)
{
axis2_endpoint_ref_t *epr = NULL;
@@ -239,7 +239,8 @@
}
axis2_bool_t AXIS2_CALL
-axis2_http_server_is_running (axis2_http_server_t *server, axis2_env_t **env)
+axis2_http_server_is_running (axis2_transport_receiver_t *server,
+ axis2_env_t **env)
{
axis2_http_server_impl_t *server_impl = NULL;
AXIS2_FUNC_PARAM_CHECK(server, env, AXIS2_FAILURE);