⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ebcblock.html

📁 eybuild中文手册 eybuild中文手册 eybuild中文手册
💻 HTML
字号:
<html>
<head>
<!-- E:/eybuild/doc/export//ebcblock.html - generated by refgen from ebcblock.c -->
 <title> ebcblock </title>
</head>
<body bgcolor="#FFFFFF"> <hr>

<a name="top"></a>
<p align=right>
<a href="libIndex.htm"><i>eyBuildLib API Reference :  eyBuildLib</i></a></p>

</blockquote><h1>ebcblock</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebcblock</strong> - eybuild task control block </p>


</blockquote><h4>ROUTINES</h4><blockquote><p>
<p>
<b><a href="./ebcblock.html#ebInit">ebInit</a>(&nbsp;)</b>  -  init current task control block<br>
<b><a href="./ebcblock.html#getEbCBlock">getEbCBlock</a>(&nbsp;)</b>  -  get eybuild control block<br>
<b><a href="./ebcblock.html#ebRequestReset">ebRequestReset</a>(&nbsp;)</b>  -  reset current task control block for FAST_CGI<br>
<b><a href="./ebcblock.html#ebClean">ebClean</a>(&nbsp;)</b>  -  clean current task control block <br>
<p>
</blockquote><h4>DESCRIPTION</h4><blockquote><p>
eybuild task control block 
<p>
<pre>/* user hooks */
typedef BOOL (*PRE_DISPATCH)(EB_BLOCK * pblk, char * pname, int type);
typedef BOOL (*POST_DISPATCH)(EB_BLOCK * pblk, char * pname, int type);
typedef BOOL (*ERR_DISPATCH)(int errnum, char * errmsg);

/* typedefs */
typedef struct EB_STAT
{
    int             options;            /* page map options */
    int             cookie_maxlen;      /* max cookie buffer length */
    int             max_cookies;        /* max cookies number */
    int             query_maxlen;       /* max query buffer length */
    int             max_querys;         /* max querys number */
    int             mainpage_maxlen;    /* max size of mainpage buffer */
    int             tmpbuf_maxlen;      /* for something tmp returned and then output, 
                                         * eg: ebUrlDecode, ebUrlEncode 
                                         */
    BOOL            disable_log;        /* disabe log, default log enabled */
    PRE_DISPATCH    pre_dispatch_hook;  /* previous dispatch hook */
    POST_DISPATCH   post_dispatch_hook; /* post dispatch hook */
    ERR_DISPATCH    error_hook;         /* send error messg */
} EB_STAT;
</pre>

</blockquote><h4>INCLUDE</h4><blockquote><p>
<b>ebcblock.h</b>
<p>
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b>ebquery.h</b>, <b>ebhandle.h</b>

<hr>
<a name="ebInit"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebInit(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebInit(&nbsp;)</strong> - init current task control block</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebInit
    (
    EB_STAT * pstat
    )
</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to initilized current task control block
<p>

</blockquote><h4>RETURN</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebcblock.html#top">ebcblock</a></b>

<hr>
<a name="getEbCBlock"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>getEbCBlock(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>getEbCBlock(&nbsp;)</strong> - get eybuild control block</p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>EB_BLOCK * getEbCBlock ()</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine the control block of current task(for VxWorks) or 
process(other OS). If control block have not initilized, 
this routine will try to init it  with default setting.
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
pointer to current control block, or NULL if initilized ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebcblock.html#top">ebcblock</a></b>

<hr>
<a name="ebRequestReset"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebRequestReset(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebRequestReset(&nbsp;)</strong> - reset current task control block for <b>FAST_CGI</b></p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebRequestReset ()</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to reset current task control block and refresh 
current request list.
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebcblock.html#top">ebcblock</a></b>

<hr>
<a name="ebClean"></a>
<p align=right>
<a href="rtnIndex.htm"><i>eyBuildLib :  Routines</i></a></p>

</blockquote><h1>ebClean(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  
<p><strong>ebClean(&nbsp;)</strong> - clean current task control block </p>

</blockquote><h4>SYNOPSIS</h4><blockquote><p>
<pre>int ebClean ()</pre>

</blockquote><h4>DESCRIPTION</h4><blockquote><p>
this routine is to clean current task control block, while exit CGI.
Usually, user need call <b><a href="./ebcblock.html#ebClean">ebClean</a>(&nbsp;)</b> manually.
<p>
</blockquote><h4>RETURN</h4><blockquote><p>
OK/ERROR
</blockquote><h4>SEE ALSO</h4><blockquote><p>
<b><a href="./ebcblock.html#top">ebcblock</a></b>

</body>
</html>



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -