1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>xline.h File Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3-rc3 -->
8 <a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
9 <hr><h1>xline.h File Reference</h1><code>#include <typeinfo></code><br>
10 <code>#include <iostream></code><br>
11 <code>#include <string></code><br>
12 <code>#include <deque></code><br>
13 <code>#include <sstream></code><br>
14 <code>#include <vector></code><br>
15 <code>#include "<a class="el" href="users_8h-source.html">users.h</a>"</code><br>
16 <code>#include "<a class="el" href="channels_8h-source.html">channels.h</a>"</code><br>
19 Include dependency graph for xline.h:<p><center><img src="xline_8h__incl.gif" border="0" usemap="#xline.h_map" alt="Include dependency graph"></center>
20 <map name="xline.h_map">
21 <area href="users_8h.html" shape="rect" coords="351,155,401,176" alt="">
22 <area href="channels_8h.html" shape="rect" coords="476,86,548,107" alt="">
23 <area href="connection_8h.html" shape="rect" coords="321,86,401,107" alt="">
27 <a href="xline_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
29 <tr><td colspan=2><br><h2>Compounds</h2></td></tr>
30 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classGLine.html">GLine</a></td></tr>
31 <tr><td> </td><td><font size=-1><em>GLine class.</em> <a href="classGLine.html#_details">More...</a><em></em></font><br><br></td></tr>
32 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classKLine.html">KLine</a></td></tr>
33 <tr><td> </td><td><font size=-1><em>KLine class.</em> <a href="classKLine.html#_details">More...</a><em></em></font><br><br></td></tr>
34 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classQLine.html">QLine</a></td></tr>
35 <tr><td> </td><td><font size=-1><em>QLine class.</em> <a href="classQLine.html#_details">More...</a><em></em></font><br><br></td></tr>
36 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classXLine.html">XLine</a></td></tr>
37 <tr><td> </td><td><font size=-1><em>XLine is the base class for ban lines such as G lines and K lines.</em> <a href="classXLine.html#_details">More...</a><em></em></font><br><br></td></tr>
38 <tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classZLine.html">ZLine</a></td></tr>
39 <tr><td> </td><td><font size=-1><em>ZLine class.</em> <a href="classZLine.html#_details">More...</a><em></em></font><br><br></td></tr>
40 <tr><td colspan=2><br><h2>Functions</h2></td></tr>
41 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a0">read_xline_defaults</a> ()</td></tr>
42 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a1">add_gline</a> (long duration, char *source, char *reason, char *hostmask)</td></tr>
43 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a2">add_qline</a> (long duration, char *source, char *reason, char *nickname)</td></tr>
44 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a3">add_zline</a> (long duration, char *source, char *reason, char *ipaddr)</td></tr>
45 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a4">add_kline</a> (long duration, char *source, char *reason, char *hostmask)</td></tr>
46 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="xline_8h.html#a5">del_gline</a> (char *hostmask)</td></tr>
47 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="xline_8h.html#a6">del_qline</a> (char *nickname)</td></tr>
48 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="xline_8h.html#a7">del_zline</a> (char *ipaddr)</td></tr>
49 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="xline_8h.html#a8">del_kline</a> (char *hostmask)</td></tr>
50 <tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="xline_8h.html#a9">matches_qline</a> (const char *nick)</td></tr>
51 <tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="xline_8h.html#a10">matches_gline</a> (const char *host)</td></tr>
52 <tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="xline_8h.html#a11">matches_zline</a> (const char *ipaddr)</td></tr>
53 <tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="xline_8h.html#a12">matches_kline</a> (const char *host)</td></tr>
54 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a13">expire_lines</a> ()</td></tr>
55 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a14">apply_lines</a> ()</td></tr>
56 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a15">stats_k</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
57 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a16">stats_g</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
58 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a17">stats_q</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
59 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a18">stats_z</a> (<a class="el" href="classuserrec.html">userrec</a> *user)</td></tr>
60 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a19">gline_set_creation_time</a> (char *host, time_t create_time)</td></tr>
61 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a20">qline_set_creation_time</a> (char *nick, time_t create_time)</td></tr>
62 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="xline_8h.html#a21">zline_set_creation_time</a> (char *ip, time_t create_time)</td></tr>
64 <hr><h2>Function Documentation</h2>
65 <a name="a1" doxytag="xline.h::add_gline"></a><p>
66 <table width="100%" cellpadding="2" cellspacing="0" border="0">
69 <table cellpadding="0" cellspacing="0" border="0">
71 <td class="md" nowrap valign="top"> void add_gline </td>
72 <td class="md" valign="top">( </td>
73 <td class="md" nowrap valign="top">long </td>
74 <td class="mdname" nowrap> <em>duration</em>, </td>
79 <td class="md" nowrap>char * </td>
80 <td class="mdname" nowrap> <em>source</em>, </td>
85 <td class="md" nowrap>char * </td>
86 <td class="mdname" nowrap> <em>reason</em>, </td>
91 <td class="md" nowrap>char * </td>
92 <td class="mdname" nowrap> <em>hostmask</em></td>
96 <td class="md">) </td>
97 <td class="md" colspan="2"></td>
104 <table cellspacing=5 cellpadding=0 border=0>
115 <a name="a4" doxytag="xline.h::add_kline"></a><p>
116 <table width="100%" cellpadding="2" cellspacing="0" border="0">
119 <table cellpadding="0" cellspacing="0" border="0">
121 <td class="md" nowrap valign="top"> void add_kline </td>
122 <td class="md" valign="top">( </td>
123 <td class="md" nowrap valign="top">long </td>
124 <td class="mdname" nowrap> <em>duration</em>, </td>
129 <td class="md" nowrap>char * </td>
130 <td class="mdname" nowrap> <em>source</em>, </td>
135 <td class="md" nowrap>char * </td>
136 <td class="mdname" nowrap> <em>reason</em>, </td>
141 <td class="md" nowrap>char * </td>
142 <td class="mdname" nowrap> <em>hostmask</em></td>
146 <td class="md">) </td>
147 <td class="md" colspan="2"></td>
154 <table cellspacing=5 cellpadding=0 border=0>
165 <a name="a2" doxytag="xline.h::add_qline"></a><p>
166 <table width="100%" cellpadding="2" cellspacing="0" border="0">
169 <table cellpadding="0" cellspacing="0" border="0">
171 <td class="md" nowrap valign="top"> void add_qline </td>
172 <td class="md" valign="top">( </td>
173 <td class="md" nowrap valign="top">long </td>
174 <td class="mdname" nowrap> <em>duration</em>, </td>
179 <td class="md" nowrap>char * </td>
180 <td class="mdname" nowrap> <em>source</em>, </td>
185 <td class="md" nowrap>char * </td>
186 <td class="mdname" nowrap> <em>reason</em>, </td>
191 <td class="md" nowrap>char * </td>
192 <td class="mdname" nowrap> <em>nickname</em></td>
196 <td class="md">) </td>
197 <td class="md" colspan="2"></td>
204 <table cellspacing=5 cellpadding=0 border=0>
215 <a name="a3" doxytag="xline.h::add_zline"></a><p>
216 <table width="100%" cellpadding="2" cellspacing="0" border="0">
219 <table cellpadding="0" cellspacing="0" border="0">
221 <td class="md" nowrap valign="top"> void add_zline </td>
222 <td class="md" valign="top">( </td>
223 <td class="md" nowrap valign="top">long </td>
224 <td class="mdname" nowrap> <em>duration</em>, </td>
229 <td class="md" nowrap>char * </td>
230 <td class="mdname" nowrap> <em>source</em>, </td>
235 <td class="md" nowrap>char * </td>
236 <td class="mdname" nowrap> <em>reason</em>, </td>
241 <td class="md" nowrap>char * </td>
242 <td class="mdname" nowrap> <em>ipaddr</em></td>
246 <td class="md">) </td>
247 <td class="md" colspan="2"></td>
254 <table cellspacing=5 cellpadding=0 border=0>
265 <a name="a14" doxytag="xline.h::apply_lines"></a><p>
266 <table width="100%" cellpadding="2" cellspacing="0" border="0">
269 <table cellpadding="0" cellspacing="0" border="0">
271 <td class="md" nowrap valign="top"> void apply_lines </td>
272 <td class="md" valign="top">( </td>
273 <td class="mdname1" valign="top" nowrap> </td>
274 <td class="md" valign="top">) </td>
275 <td class="md" nowrap></td>
282 <table cellspacing=5 cellpadding=0 border=0>
293 <a name="a5" doxytag="xline.h::del_gline"></a><p>
294 <table width="100%" cellpadding="2" cellspacing="0" border="0">
297 <table cellpadding="0" cellspacing="0" border="0">
299 <td class="md" nowrap valign="top"> bool del_gline </td>
300 <td class="md" valign="top">( </td>
301 <td class="md" nowrap valign="top">char * </td>
302 <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td>
303 <td class="md" valign="top">) </td>
304 <td class="md" nowrap></td>
311 <table cellspacing=5 cellpadding=0 border=0>
322 <a name="a8" doxytag="xline.h::del_kline"></a><p>
323 <table width="100%" cellpadding="2" cellspacing="0" border="0">
326 <table cellpadding="0" cellspacing="0" border="0">
328 <td class="md" nowrap valign="top"> bool del_kline </td>
329 <td class="md" valign="top">( </td>
330 <td class="md" nowrap valign="top">char * </td>
331 <td class="mdname1" valign="top" nowrap> <em>hostmask</em> </td>
332 <td class="md" valign="top">) </td>
333 <td class="md" nowrap></td>
340 <table cellspacing=5 cellpadding=0 border=0>
351 <a name="a6" doxytag="xline.h::del_qline"></a><p>
352 <table width="100%" cellpadding="2" cellspacing="0" border="0">
355 <table cellpadding="0" cellspacing="0" border="0">
357 <td class="md" nowrap valign="top"> bool del_qline </td>
358 <td class="md" valign="top">( </td>
359 <td class="md" nowrap valign="top">char * </td>
360 <td class="mdname1" valign="top" nowrap> <em>nickname</em> </td>
361 <td class="md" valign="top">) </td>
362 <td class="md" nowrap></td>
369 <table cellspacing=5 cellpadding=0 border=0>
380 <a name="a7" doxytag="xline.h::del_zline"></a><p>
381 <table width="100%" cellpadding="2" cellspacing="0" border="0">
384 <table cellpadding="0" cellspacing="0" border="0">
386 <td class="md" nowrap valign="top"> bool del_zline </td>
387 <td class="md" valign="top">( </td>
388 <td class="md" nowrap valign="top">char * </td>
389 <td class="mdname1" valign="top" nowrap> <em>ipaddr</em> </td>
390 <td class="md" valign="top">) </td>
391 <td class="md" nowrap></td>
398 <table cellspacing=5 cellpadding=0 border=0>
409 <a name="a13" doxytag="xline.h::expire_lines"></a><p>
410 <table width="100%" cellpadding="2" cellspacing="0" border="0">
413 <table cellpadding="0" cellspacing="0" border="0">
415 <td class="md" nowrap valign="top"> void expire_lines </td>
416 <td class="md" valign="top">( </td>
417 <td class="mdname1" valign="top" nowrap> </td>
418 <td class="md" valign="top">) </td>
419 <td class="md" nowrap></td>
426 <table cellspacing=5 cellpadding=0 border=0>
437 <a name="a19" doxytag="xline.h::gline_set_creation_time"></a><p>
438 <table width="100%" cellpadding="2" cellspacing="0" border="0">
441 <table cellpadding="0" cellspacing="0" border="0">
443 <td class="md" nowrap valign="top"> void gline_set_creation_time </td>
444 <td class="md" valign="top">( </td>
445 <td class="md" nowrap valign="top">char * </td>
446 <td class="mdname" nowrap> <em>host</em>, </td>
451 <td class="md" nowrap>time_t </td>
452 <td class="mdname" nowrap> <em>create_time</em></td>
456 <td class="md">) </td>
457 <td class="md" colspan="2"></td>
464 <table cellspacing=5 cellpadding=0 border=0>
475 <a name="a10" doxytag="xline.h::matches_gline"></a><p>
476 <table width="100%" cellpadding="2" cellspacing="0" border="0">
479 <table cellpadding="0" cellspacing="0" border="0">
481 <td class="md" nowrap valign="top"> char* matches_gline </td>
482 <td class="md" valign="top">( </td>
483 <td class="md" nowrap valign="top">const char * </td>
484 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
485 <td class="md" valign="top">) </td>
486 <td class="md" nowrap></td>
493 <table cellspacing=5 cellpadding=0 border=0>
504 <a name="a12" doxytag="xline.h::matches_kline"></a><p>
505 <table width="100%" cellpadding="2" cellspacing="0" border="0">
508 <table cellpadding="0" cellspacing="0" border="0">
510 <td class="md" nowrap valign="top"> char* matches_kline </td>
511 <td class="md" valign="top">( </td>
512 <td class="md" nowrap valign="top">const char * </td>
513 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
514 <td class="md" valign="top">) </td>
515 <td class="md" nowrap></td>
522 <table cellspacing=5 cellpadding=0 border=0>
533 <a name="a9" doxytag="xline.h::matches_qline"></a><p>
534 <table width="100%" cellpadding="2" cellspacing="0" border="0">
537 <table cellpadding="0" cellspacing="0" border="0">
539 <td class="md" nowrap valign="top"> char* matches_qline </td>
540 <td class="md" valign="top">( </td>
541 <td class="md" nowrap valign="top">const char * </td>
542 <td class="mdname1" valign="top" nowrap> <em>nick</em> </td>
543 <td class="md" valign="top">) </td>
544 <td class="md" nowrap></td>
551 <table cellspacing=5 cellpadding=0 border=0>
562 <a name="a11" doxytag="xline.h::matches_zline"></a><p>
563 <table width="100%" cellpadding="2" cellspacing="0" border="0">
566 <table cellpadding="0" cellspacing="0" border="0">
568 <td class="md" nowrap valign="top"> char* matches_zline </td>
569 <td class="md" valign="top">( </td>
570 <td class="md" nowrap valign="top">const char * </td>
571 <td class="mdname1" valign="top" nowrap> <em>ipaddr</em> </td>
572 <td class="md" valign="top">) </td>
573 <td class="md" nowrap></td>
580 <table cellspacing=5 cellpadding=0 border=0>
591 <a name="a20" doxytag="xline.h::qline_set_creation_time"></a><p>
592 <table width="100%" cellpadding="2" cellspacing="0" border="0">
595 <table cellpadding="0" cellspacing="0" border="0">
597 <td class="md" nowrap valign="top"> void qline_set_creation_time </td>
598 <td class="md" valign="top">( </td>
599 <td class="md" nowrap valign="top">char * </td>
600 <td class="mdname" nowrap> <em>nick</em>, </td>
605 <td class="md" nowrap>time_t </td>
606 <td class="mdname" nowrap> <em>create_time</em></td>
610 <td class="md">) </td>
611 <td class="md" colspan="2"></td>
618 <table cellspacing=5 cellpadding=0 border=0>
629 <a name="a0" doxytag="xline.h::read_xline_defaults"></a><p>
630 <table width="100%" cellpadding="2" cellspacing="0" border="0">
633 <table cellpadding="0" cellspacing="0" border="0">
635 <td class="md" nowrap valign="top"> void read_xline_defaults </td>
636 <td class="md" valign="top">( </td>
637 <td class="mdname1" valign="top" nowrap> </td>
638 <td class="md" valign="top">) </td>
639 <td class="md" nowrap></td>
646 <table cellspacing=5 cellpadding=0 border=0>
657 <a name="a16" doxytag="xline.h::stats_g"></a><p>
658 <table width="100%" cellpadding="2" cellspacing="0" border="0">
661 <table cellpadding="0" cellspacing="0" border="0">
663 <td class="md" nowrap valign="top"> void stats_g </td>
664 <td class="md" valign="top">( </td>
665 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
666 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
667 <td class="md" valign="top">) </td>
668 <td class="md" nowrap></td>
675 <table cellspacing=5 cellpadding=0 border=0>
686 <a name="a15" doxytag="xline.h::stats_k"></a><p>
687 <table width="100%" cellpadding="2" cellspacing="0" border="0">
690 <table cellpadding="0" cellspacing="0" border="0">
692 <td class="md" nowrap valign="top"> void stats_k </td>
693 <td class="md" valign="top">( </td>
694 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
695 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
696 <td class="md" valign="top">) </td>
697 <td class="md" nowrap></td>
704 <table cellspacing=5 cellpadding=0 border=0>
715 <a name="a17" doxytag="xline.h::stats_q"></a><p>
716 <table width="100%" cellpadding="2" cellspacing="0" border="0">
719 <table cellpadding="0" cellspacing="0" border="0">
721 <td class="md" nowrap valign="top"> void stats_q </td>
722 <td class="md" valign="top">( </td>
723 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
724 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
725 <td class="md" valign="top">) </td>
726 <td class="md" nowrap></td>
733 <table cellspacing=5 cellpadding=0 border=0>
744 <a name="a18" doxytag="xline.h::stats_z"></a><p>
745 <table width="100%" cellpadding="2" cellspacing="0" border="0">
748 <table cellpadding="0" cellspacing="0" border="0">
750 <td class="md" nowrap valign="top"> void stats_z </td>
751 <td class="md" valign="top">( </td>
752 <td class="md" nowrap valign="top"><a class="el" href="classuserrec.html">userrec</a> * </td>
753 <td class="mdname1" valign="top" nowrap> <em>user</em> </td>
754 <td class="md" valign="top">) </td>
755 <td class="md" nowrap></td>
762 <table cellspacing=5 cellpadding=0 border=0>
773 <a name="a21" doxytag="xline.h::zline_set_creation_time"></a><p>
774 <table width="100%" cellpadding="2" cellspacing="0" border="0">
777 <table cellpadding="0" cellspacing="0" border="0">
779 <td class="md" nowrap valign="top"> void zline_set_creation_time </td>
780 <td class="md" valign="top">( </td>
781 <td class="md" nowrap valign="top">char * </td>
782 <td class="mdname" nowrap> <em>ip</em>, </td>
787 <td class="md" nowrap>time_t </td>
788 <td class="mdname" nowrap> <em>create_time</em></td>
792 <td class="md">) </td>
793 <td class="md" colspan="2"></td>
800 <table cellspacing=5 cellpadding=0 border=0>
811 <hr><address style="align: right;"><small>Generated on Sun Apr 25 00:24:14 2004 for InspIRCd by
812 <a href="http://www.doxygen.org/index.html">
813 <img src="doxygen.png" alt="doxygen" align="middle" border=0
814 width=110 height=53></a>1.3-rc3 </small></address>