axutil_stomp.h

00001 #ifndef AXIS2_STOMP_H
00002 #define AXIS2_STOMP_H
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif /* __cplusplus */
00007 
00008 #include "axutil_stomp_frame.h"
00009 
00010     typedef struct axutil_stomp 
00011     {
00012         axutil_stomp_frame_t *frame;
00013         axutil_stream_t *stream;
00014         axis2_socket_t socket;
00015     }axutil_stomp_t;
00016 
00017 
00018     axutil_stomp_t *
00019     axutil_stomp_create (
00020         const axutil_env_t *env,
00021         char *host,
00022         int port);
00023 
00024 
00025     axis2_status_t
00026     axutil_stomp_set_command (
00027         axutil_stomp_t *stomp,
00028         const axutil_env_t *env,
00029         axis2_char_t *command);
00030 
00031 
00032     axis2_status_t
00033     axutil_stomp_set_body (
00034         axutil_stomp_t *stomp,
00035         const axutil_env_t *env,
00036         axis2_char_t *body);
00037 
00038 
00039     axis2_status_t
00040     axutil_stomp_set_header (
00041         axutil_stomp_t *stomp,
00042         const axutil_env_t *env,
00043         axis2_char_t *header,
00044         axis2_char_t *value);
00045 
00046     int 
00047     axutil_stomp_write (
00048         axutil_stomp_t *stomp,
00049         const axutil_env_t *env);
00050 
00051     axutil_stomp_frame_t *
00052     axutil_stomp_read (
00053         axutil_stomp_t *stomp,
00054         const axutil_env_t *env);
00055 
00056     void
00057     axutil_stomp_reset (
00058         axutil_stomp_t *stomp,
00059         const axutil_env_t *env);
00060 
00061     void 
00062     axutil_stomp_free (
00063         axutil_stomp_t *stomp,
00064         const axutil_env_t *env);
00065 
00066 
00067 
00068 
00069 
00070 #ifdef __cplusplus
00071 }
00072 #endif
00073 
00074 #endif  /* AXIS2_STOMP_H */
00075 
00076 
00077 
00078 
00079 

Generated on Wed Oct 14 01:02:12 2009 for Axis2/C by  doxygen 1.5.7.1