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>connection class Reference</title>
4 <link href="doxygen.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="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>connection Class Reference</h1><code>#include <<a class="el" href="connection_8h-source.html">connection.h</a>></code>
11 Inheritance diagram for connection:<p><center><img src="classconnection__inherit__graph.gif" border="0" usemap="#connection__inherit__map" alt="Inheritance graph"></center>
12 <map name="connection__inherit__map">
13 <area href="classserverrec.html" shape="rect" coords="7,154,73,176" alt="">
14 <area href="classuserrec.html" shape="rect" coords="97,154,153,176" alt="">
15 <area href="classclassbase.html" shape="rect" coords="49,16,116,37" alt="">
17 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for connection:<p><center><img src="classconnection__coll__graph.gif" border="0" usemap="#connection__coll__map" alt="Collaboration graph"></center>
18 <map name="connection__coll__map">
19 <area href="classclassbase.html" shape="rect" coords="156,123,223,144" alt="">
21 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classconnection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
23 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
24 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classconnection.html#a0">connection</a> ()</td></tr>
25 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a1">CreateListener</a> (char *<a class="el" href="classconnection.html#m2">host</a>, int p)</td></tr>
26 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a2">BeginLink</a> (char *targethost, int <a class="el" href="classconnection.html#m10">port</a>, char *password)</td></tr>
27 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classconnection.html#a3">TerminateLink</a> (char *targethost)</td></tr>
28 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a4">SendPacket</a> (char *message, char *<a class="el" href="classconnection.html#m2">host</a>, int <a class="el" href="classconnection.html#m10">port</a>)</td></tr>
29 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a5">RecvPacket</a> (char *message, char *<a class="el" href="classconnection.html#m2">host</a>, int &prt)</td></tr>
30 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a6">SendSYN</a> (char *<a class="el" href="classconnection.html#m2">host</a>, int <a class="el" href="classconnection.html#m10">port</a>)</td></tr>
31 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a7">SendACK</a> (char *<a class="el" href="classconnection.html#m2">host</a>, int <a class="el" href="classconnection.html#m10">port</a>, int reply_id)</td></tr>
32 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#a8">GenKey</a> ()</td></tr>
33 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
34 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m0">key</a></td></tr>
35 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m1">fd</a></td></tr>
36 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m2">host</a> [256]</td></tr>
37 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m3">ip</a></td></tr>
38 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m4">inbuf</a> [MAXBUF]</td></tr>
39 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m5">bytes_in</a></td></tr>
40 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m6">bytes_out</a></td></tr>
41 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m7">cmds_in</a></td></tr>
42 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m8">cmds_out</a></td></tr>
43 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#m9">haspassed</a></td></tr>
44 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m10">port</a></td></tr>
45 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m11">registered</a></td></tr>
46 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m12">lastping</a></td></tr>
47 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m13">signon</a></td></tr>
48 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m14">idle_lastmsg</a></td></tr>
49 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m15">nping</a></td></tr>
51 <hr><h2>Constructor & Destructor Documentation</h2>
52 <a name="a0" doxytag="connection::connection"></a><p>
53 <table width="100%" cellpadding="2" cellspacing="0" border="0">
56 <table cellpadding="0" cellspacing="0" border="0">
58 <td class="md" nowrap valign="top"> connection::connection </td>
59 <td class="md" valign="top">( </td>
60 <td class="mdname1" valign="top" nowrap> </td>
61 <td class="md" valign="top">) </td>
62 <td class="md" nowrap></td>
69 <table cellspacing=5 cellpadding=0 border=0>
80 <hr><h2>Member Function Documentation</h2>
81 <a name="a2" doxytag="connection::BeginLink"></a><p>
82 <table width="100%" cellpadding="2" cellspacing="0" border="0">
85 <table cellpadding="0" cellspacing="0" border="0">
87 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
88 <td class="md" valign="top">( </td>
89 <td class="md" nowrap valign="top">char * </td>
90 <td class="mdname" nowrap> <em>targethost</em>, </td>
95 <td class="md" nowrap>int </td>
96 <td class="mdname" nowrap> <em>port</em>, </td>
101 <td class="md" nowrap>char * </td>
102 <td class="mdname" nowrap> <em>password</em></td>
106 <td class="md">) </td>
107 <td class="md" colspan="2"></td>
114 <table cellspacing=5 cellpadding=0 border=0>
125 <a name="a1" doxytag="connection::CreateListener"></a><p>
126 <table width="100%" cellpadding="2" cellspacing="0" border="0">
129 <table cellpadding="0" cellspacing="0" border="0">
131 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
132 <td class="md" valign="top">( </td>
133 <td class="md" nowrap valign="top">char * </td>
134 <td class="mdname" nowrap> <em>host</em>, </td>
139 <td class="md" nowrap>int </td>
140 <td class="mdname" nowrap> <em>p</em></td>
144 <td class="md">) </td>
145 <td class="md" colspan="2"></td>
152 <table cellspacing=5 cellpadding=0 border=0>
163 <a name="a8" doxytag="connection::GenKey"></a><p>
164 <table width="100%" cellpadding="2" cellspacing="0" border="0">
167 <table cellpadding="0" cellspacing="0" border="0">
169 <td class="md" nowrap valign="top"> long connection::GenKey </td>
170 <td class="md" valign="top">( </td>
171 <td class="mdname1" valign="top" nowrap> </td>
172 <td class="md" valign="top">) </td>
173 <td class="md" nowrap></td>
180 <table cellspacing=5 cellpadding=0 border=0>
191 <a name="a5" doxytag="connection::RecvPacket"></a><p>
192 <table width="100%" cellpadding="2" cellspacing="0" border="0">
195 <table cellpadding="0" cellspacing="0" border="0">
197 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
198 <td class="md" valign="top">( </td>
199 <td class="md" nowrap valign="top">char * </td>
200 <td class="mdname" nowrap> <em>message</em>, </td>
205 <td class="md" nowrap>char * </td>
206 <td class="mdname" nowrap> <em>host</em>, </td>
211 <td class="md" nowrap>int & </td>
212 <td class="mdname" nowrap> <em>prt</em></td>
216 <td class="md">) </td>
217 <td class="md" colspan="2"></td>
224 <table cellspacing=5 cellpadding=0 border=0>
235 <a name="a7" doxytag="connection::SendACK"></a><p>
236 <table width="100%" cellpadding="2" cellspacing="0" border="0">
239 <table cellpadding="0" cellspacing="0" border="0">
241 <td class="md" nowrap valign="top"> bool connection::SendACK </td>
242 <td class="md" valign="top">( </td>
243 <td class="md" nowrap valign="top">char * </td>
244 <td class="mdname" nowrap> <em>host</em>, </td>
249 <td class="md" nowrap>int </td>
250 <td class="mdname" nowrap> <em>port</em>, </td>
255 <td class="md" nowrap>int </td>
256 <td class="mdname" nowrap> <em>reply_id</em></td>
260 <td class="md">) </td>
261 <td class="md" colspan="2"></td>
268 <table cellspacing=5 cellpadding=0 border=0>
279 <a name="a4" doxytag="connection::SendPacket"></a><p>
280 <table width="100%" cellpadding="2" cellspacing="0" border="0">
283 <table cellpadding="0" cellspacing="0" border="0">
285 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
286 <td class="md" valign="top">( </td>
287 <td class="md" nowrap valign="top">char * </td>
288 <td class="mdname" nowrap> <em>message</em>, </td>
293 <td class="md" nowrap>char * </td>
294 <td class="mdname" nowrap> <em>host</em>, </td>
299 <td class="md" nowrap>int </td>
300 <td class="mdname" nowrap> <em>port</em></td>
304 <td class="md">) </td>
305 <td class="md" colspan="2"></td>
312 <table cellspacing=5 cellpadding=0 border=0>
323 <a name="a6" doxytag="connection::SendSYN"></a><p>
324 <table width="100%" cellpadding="2" cellspacing="0" border="0">
327 <table cellpadding="0" cellspacing="0" border="0">
329 <td class="md" nowrap valign="top"> bool connection::SendSYN </td>
330 <td class="md" valign="top">( </td>
331 <td class="md" nowrap valign="top">char * </td>
332 <td class="mdname" nowrap> <em>host</em>, </td>
337 <td class="md" nowrap>int </td>
338 <td class="mdname" nowrap> <em>port</em></td>
342 <td class="md">) </td>
343 <td class="md" colspan="2"></td>
350 <table cellspacing=5 cellpadding=0 border=0>
361 <a name="a3" doxytag="connection::TerminateLink"></a><p>
362 <table width="100%" cellpadding="2" cellspacing="0" border="0">
365 <table cellpadding="0" cellspacing="0" border="0">
367 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
368 <td class="md" valign="top">( </td>
369 <td class="md" nowrap valign="top">char * </td>
370 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
371 <td class="md" valign="top">) </td>
372 <td class="md" nowrap></td>
379 <table cellspacing=5 cellpadding=0 border=0>
390 <hr><h2>Member Data Documentation</h2>
391 <a name="m5" doxytag="connection::bytes_in"></a><p>
392 <table width="100%" cellpadding="2" cellspacing="0" border="0">
395 <table cellpadding="0" cellspacing="0" border="0">
397 <td class="md" nowrap valign="top"> long connection::bytes_in
402 <table cellspacing=5 cellpadding=0 border=0>
412 Definition at line <a class="el" href="connection_8h-source.html#l00046">46</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
414 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
417 <a name="m6" doxytag="connection::bytes_out"></a><p>
418 <table width="100%" cellpadding="2" cellspacing="0" border="0">
421 <table cellpadding="0" cellspacing="0" border="0">
423 <td class="md" nowrap valign="top"> long connection::bytes_out
428 <table cellspacing=5 cellpadding=0 border=0>
438 Definition at line <a class="el" href="connection_8h-source.html#l00047">47</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
440 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
443 <a name="m7" doxytag="connection::cmds_in"></a><p>
444 <table width="100%" cellpadding="2" cellspacing="0" border="0">
447 <table cellpadding="0" cellspacing="0" border="0">
449 <td class="md" nowrap valign="top"> long connection::cmds_in
454 <table cellspacing=5 cellpadding=0 border=0>
464 Definition at line <a class="el" href="connection_8h-source.html#l00048">48</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
466 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
469 <a name="m8" doxytag="connection::cmds_out"></a><p>
470 <table width="100%" cellpadding="2" cellspacing="0" border="0">
473 <table cellpadding="0" cellspacing="0" border="0">
475 <td class="md" nowrap valign="top"> long connection::cmds_out
480 <table cellspacing=5 cellpadding=0 border=0>
490 Definition at line <a class="el" href="connection_8h-source.html#l00049">49</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
492 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
495 <a name="m1" doxytag="connection::fd"></a><p>
496 <table width="100%" cellpadding="2" cellspacing="0" border="0">
499 <table cellpadding="0" cellspacing="0" border="0">
501 <td class="md" nowrap valign="top"> int connection::fd
506 <table cellspacing=5 cellpadding=0 border=0>
516 Definition at line <a class="el" href="connection_8h-source.html#l00042">42</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
518 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
521 <a name="m9" doxytag="connection::haspassed"></a><p>
522 <table width="100%" cellpadding="2" cellspacing="0" border="0">
525 <table cellpadding="0" cellspacing="0" border="0">
527 <td class="md" nowrap valign="top"> bool connection::haspassed
532 <table cellspacing=5 cellpadding=0 border=0>
542 Definition at line <a class="el" href="connection_8h-source.html#l00050">50</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
544 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
547 <a name="m2" doxytag="connection::host"></a><p>
548 <table width="100%" cellpadding="2" cellspacing="0" border="0">
551 <table cellpadding="0" cellspacing="0" border="0">
553 <td class="md" nowrap valign="top"> char connection::host[256]
558 <table cellspacing=5 cellpadding=0 border=0>
568 Definition at line <a class="el" href="connection_8h-source.html#l00043">43</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
571 <a name="m14" doxytag="connection::idle_lastmsg"></a><p>
572 <table width="100%" cellpadding="2" cellspacing="0" border="0">
575 <table cellpadding="0" cellspacing="0" border="0">
577 <td class="md" nowrap valign="top"> time_t connection::idle_lastmsg
582 <table cellspacing=5 cellpadding=0 border=0>
592 Definition at line <a class="el" href="connection_8h-source.html#l00055">55</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
594 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
597 <a name="m4" doxytag="connection::inbuf"></a><p>
598 <table width="100%" cellpadding="2" cellspacing="0" border="0">
601 <table cellpadding="0" cellspacing="0" border="0">
603 <td class="md" nowrap valign="top"> char connection::inbuf[MAXBUF]
608 <table cellspacing=5 cellpadding=0 border=0>
618 Definition at line <a class="el" href="connection_8h-source.html#l00045">45</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
621 <a name="m3" doxytag="connection::ip"></a><p>
622 <table width="100%" cellpadding="2" cellspacing="0" border="0">
625 <table cellpadding="0" cellspacing="0" border="0">
627 <td class="md" nowrap valign="top"> long connection::ip
632 <table cellspacing=5 cellpadding=0 border=0>
642 Definition at line <a class="el" href="connection_8h-source.html#l00044">44</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
644 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
647 <a name="m0" doxytag="connection::key"></a><p>
648 <table width="100%" cellpadding="2" cellspacing="0" border="0">
651 <table cellpadding="0" cellspacing="0" border="0">
653 <td class="md" nowrap valign="top"> long connection::key
658 <table cellspacing=5 cellpadding=0 border=0>
668 Definition at line <a class="el" href="connection_8h-source.html#l00041">41</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
671 <a name="m12" doxytag="connection::lastping"></a><p>
672 <table width="100%" cellpadding="2" cellspacing="0" border="0">
675 <table cellpadding="0" cellspacing="0" border="0">
677 <td class="md" nowrap valign="top"> time_t connection::lastping
682 <table cellspacing=5 cellpadding=0 border=0>
692 Definition at line <a class="el" href="connection_8h-source.html#l00053">53</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
694 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
697 <a name="m15" doxytag="connection::nping"></a><p>
698 <table width="100%" cellpadding="2" cellspacing="0" border="0">
701 <table cellpadding="0" cellspacing="0" border="0">
703 <td class="md" nowrap valign="top"> time_t connection::nping
708 <table cellspacing=5 cellpadding=0 border=0>
718 Definition at line <a class="el" href="connection_8h-source.html#l00056">56</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
720 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
723 <a name="m10" doxytag="connection::port"></a><p>
724 <table width="100%" cellpadding="2" cellspacing="0" border="0">
727 <table cellpadding="0" cellspacing="0" border="0">
729 <td class="md" nowrap valign="top"> int connection::port
734 <table cellspacing=5 cellpadding=0 border=0>
744 Definition at line <a class="el" href="connection_8h-source.html#l00051">51</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
746 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
749 <a name="m11" doxytag="connection::registered"></a><p>
750 <table width="100%" cellpadding="2" cellspacing="0" border="0">
753 <table cellpadding="0" cellspacing="0" border="0">
755 <td class="md" nowrap valign="top"> int connection::registered
760 <table cellspacing=5 cellpadding=0 border=0>
770 Definition at line <a class="el" href="connection_8h-source.html#l00052">52</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
772 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
775 <a name="m13" doxytag="connection::signon"></a><p>
776 <table width="100%" cellpadding="2" cellspacing="0" border="0">
779 <table cellpadding="0" cellspacing="0" border="0">
781 <td class="md" nowrap valign="top"> time_t connection::signon
786 <table cellspacing=5 cellpadding=0 border=0>
796 Definition at line <a class="el" href="connection_8h-source.html#l00054">54</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
798 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
801 <hr>The documentation for this class was generated from the following file:<ul>
802 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
803 <hr><address style="align: right;"><small>Generated on Sun Mar 30 19:35:54 2003 for InspIRCd by
804 <a href="http://www.doxygen.org/index.html">
805 <img src="doxygen.png" alt="doxygen" align="middle" border=0
806 width=110 height=53></a>1.3-rc3 </small></address>