Axis2/C: tcpmon_util.h Source File

- Main Page
- Modules
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

# tcpmon_util.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  * Licensed to the Apache Software Foundation (ASF) under one or more
    00004  * contributor license agreements.  See the NOTICE file distributed with
    00005  * this work for additional information regarding copyright ownership.
    00006  * The ASF licenses this file to You under the Apache License, Version 2.0
    00007  * (the "License"); you may not use this file except in compliance with
    00008  * the License.  You may obtain a copy of the License at
    00009  *
    00010  *      http://www.apache.org/licenses/LICENSE-2.0
    00011  *
    00012  * Unless required by applicable law or agreed to in writing, software
    00013  * distributed under the License is distributed on an "AS IS" BASIS,
    00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00015  * See the License for the specific language governing permissions and
    00016  * limitations under the License.
    00017  */
    00018
    00019 #ifndef TCPMON_UTIL_H
    00020 #define TCPMON_UTIL_H
    00021
    00022 #include <axutil_env.h>
    00023 #include <axutil_string.h>
    00024 #include <axutil_stream.h>
    00025
    00031 #ifdef __cplusplus
    00032 extern "C"
    00033 {
    00034 #endif
    00035
    00047     axis2_char_t *tcpmon_util_format_as_xml(
    00048         const axutil_env_t * env,
    00049         axis2_char_t * data,
    00050         int format);
    00051
    00052         char *str_replace(
    00053                 char *str,
    00054                 const char *search,
    00055                 const char *replace);
    00056
    00057     axis2_char_t * tcpmon_util_strcat(
    00058         axis2_char_t * dest,
    00059         axis2_char_t * source,
    00060         int *buff_size,
    00061         const axutil_env_t * env);
    00062
    00063     axis2_char_t *
    00064     tcpmon_util_read_current_stream(
    00065         const axutil_env_t * env,
    00066         axutil_stream_t * stream,
    00067         int *stream_size,
    00068         axis2_char_t ** header,
    00069         axis2_char_t ** data);
    00070
    00071     char *
    00072     tcpmon_util_str_replace(
    00073         const axutil_env_t *env,
    00074         char *str,
    00075         const char *search,
    00076         const char *replace);
    00077
    00078     int
    00079     tcpmon_util_write_to_file(
    00080         char *filename,
    00081         char *buffer);
    00082
    00083
    00084
    00087 #ifdef __cplusplus
    00088 }
    00089 #endif
    00090
    00091 #endif                          /* TCPMON_UTIL_H */