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-rc2 -->
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 <p>Inheritance diagram for connection:
12 <p><center><img src="classconnection.png" usemap="#connection_map" border="0" alt=""></center>
13 <map name="connection_map">
14 <area href="classclassbase.html" alt="classbase" shape="rect" coords="42,0,116,24">
15 <area href="classserverrec.html" alt="serverrec" shape="rect" coords="0,112,74,136">
16 <area href="classuserrec.html" alt="userrec" shape="rect" coords="84,112,158,136">
18 <a href="classconnection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
20 <tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
21 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classconnection.html#a0">connection</a> ()</td></tr>
22 <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>
23 <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>
24 <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>
25 <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>
26 <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>
27 <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>
28 <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>
29 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#a8">GenKey</a> ()</td></tr>
30 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
31 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m0">key</a></td></tr>
32 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m1">fd</a></td></tr>
33 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m2">host</a> [256]</td></tr>
34 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m3">ip</a></td></tr>
35 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m4">inbuf</a> [MAXBUF]</td></tr>
36 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m5">bytes_in</a></td></tr>
37 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m6">bytes_out</a></td></tr>
38 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m7">cmds_in</a></td></tr>
39 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m8">cmds_out</a></td></tr>
40 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#m9">haspassed</a></td></tr>
41 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m10">port</a></td></tr>
42 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m11">registered</a></td></tr>
43 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m12">lastping</a></td></tr>
44 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m13">signon</a></td></tr>
45 <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>
46 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m15">nping</a></td></tr>
48 <hr><h2>Constructor & Destructor Documentation</h2>
49 <a name="a0" doxytag="connection::connection"></a><p>
50 <table width="100%" cellpadding="2" cellspacing="0" border="0">
53 <table cellpadding="0" cellspacing="0" border="0">
55 <td class="md" nowrap valign="top"> connection::connection </td>
56 <td class="md" valign="top">( </td>
57 <td class="mdname1" valign="top" nowrap> </td>
58 <td class="md" valign="top">) </td>
59 <td class="md" nowrap></td>
66 <table cellspacing=5 cellpadding=0 border=0>
77 <hr><h2>Member Function Documentation</h2>
78 <a name="a2" doxytag="connection::BeginLink"></a><p>
79 <table width="100%" cellpadding="2" cellspacing="0" border="0">
82 <table cellpadding="0" cellspacing="0" border="0">
84 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
85 <td class="md" valign="top">( </td>
86 <td class="md" nowrap valign="top">char * </td>
87 <td class="mdname" nowrap> <em>targethost</em>, </td>
92 <td class="md" nowrap>int </td>
93 <td class="mdname" nowrap> <em>port</em>, </td>
98 <td class="md" nowrap>char * </td>
99 <td class="mdname" nowrap> <em>password</em></td>
103 <td class="md">) </td>
104 <td class="md" colspan="2"></td>
111 <table cellspacing=5 cellpadding=0 border=0>
122 <a name="a1" doxytag="connection::CreateListener"></a><p>
123 <table width="100%" cellpadding="2" cellspacing="0" border="0">
126 <table cellpadding="0" cellspacing="0" border="0">
128 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
129 <td class="md" valign="top">( </td>
130 <td class="md" nowrap valign="top">char * </td>
131 <td class="mdname" nowrap> <em>host</em>, </td>
136 <td class="md" nowrap>int </td>
137 <td class="mdname" nowrap> <em>p</em></td>
141 <td class="md">) </td>
142 <td class="md" colspan="2"></td>
149 <table cellspacing=5 cellpadding=0 border=0>
160 <a name="a8" doxytag="connection::GenKey"></a><p>
161 <table width="100%" cellpadding="2" cellspacing="0" border="0">
164 <table cellpadding="0" cellspacing="0" border="0">
166 <td class="md" nowrap valign="top"> long connection::GenKey </td>
167 <td class="md" valign="top">( </td>
168 <td class="mdname1" valign="top" nowrap> </td>
169 <td class="md" valign="top">) </td>
170 <td class="md" nowrap></td>
177 <table cellspacing=5 cellpadding=0 border=0>
188 <a name="a5" doxytag="connection::RecvPacket"></a><p>
189 <table width="100%" cellpadding="2" cellspacing="0" border="0">
192 <table cellpadding="0" cellspacing="0" border="0">
194 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
195 <td class="md" valign="top">( </td>
196 <td class="md" nowrap valign="top">char * </td>
197 <td class="mdname" nowrap> <em>message</em>, </td>
202 <td class="md" nowrap>char * </td>
203 <td class="mdname" nowrap> <em>host</em>, </td>
208 <td class="md" nowrap>int & </td>
209 <td class="mdname" nowrap> <em>prt</em></td>
213 <td class="md">) </td>
214 <td class="md" colspan="2"></td>
221 <table cellspacing=5 cellpadding=0 border=0>
232 <a name="a7" doxytag="connection::SendACK"></a><p>
233 <table width="100%" cellpadding="2" cellspacing="0" border="0">
236 <table cellpadding="0" cellspacing="0" border="0">
238 <td class="md" nowrap valign="top"> bool connection::SendACK </td>
239 <td class="md" valign="top">( </td>
240 <td class="md" nowrap valign="top">char * </td>
241 <td class="mdname" nowrap> <em>host</em>, </td>
246 <td class="md" nowrap>int </td>
247 <td class="mdname" nowrap> <em>port</em>, </td>
252 <td class="md" nowrap>int </td>
253 <td class="mdname" nowrap> <em>reply_id</em></td>
257 <td class="md">) </td>
258 <td class="md" colspan="2"></td>
265 <table cellspacing=5 cellpadding=0 border=0>
276 <a name="a4" doxytag="connection::SendPacket"></a><p>
277 <table width="100%" cellpadding="2" cellspacing="0" border="0">
280 <table cellpadding="0" cellspacing="0" border="0">
282 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
283 <td class="md" valign="top">( </td>
284 <td class="md" nowrap valign="top">char * </td>
285 <td class="mdname" nowrap> <em>message</em>, </td>
290 <td class="md" nowrap>char * </td>
291 <td class="mdname" nowrap> <em>host</em>, </td>
296 <td class="md" nowrap>int </td>
297 <td class="mdname" nowrap> <em>port</em></td>
301 <td class="md">) </td>
302 <td class="md" colspan="2"></td>
309 <table cellspacing=5 cellpadding=0 border=0>
320 <a name="a6" doxytag="connection::SendSYN"></a><p>
321 <table width="100%" cellpadding="2" cellspacing="0" border="0">
324 <table cellpadding="0" cellspacing="0" border="0">
326 <td class="md" nowrap valign="top"> bool connection::SendSYN </td>
327 <td class="md" valign="top">( </td>
328 <td class="md" nowrap valign="top">char * </td>
329 <td class="mdname" nowrap> <em>host</em>, </td>
334 <td class="md" nowrap>int </td>
335 <td class="mdname" nowrap> <em>port</em></td>
339 <td class="md">) </td>
340 <td class="md" colspan="2"></td>
347 <table cellspacing=5 cellpadding=0 border=0>
358 <a name="a3" doxytag="connection::TerminateLink"></a><p>
359 <table width="100%" cellpadding="2" cellspacing="0" border="0">
362 <table cellpadding="0" cellspacing="0" border="0">
364 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
365 <td class="md" valign="top">( </td>
366 <td class="md" nowrap valign="top">char * </td>
367 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
368 <td class="md" valign="top">) </td>
369 <td class="md" nowrap></td>
376 <table cellspacing=5 cellpadding=0 border=0>
387 <hr><h2>Member Data Documentation</h2>
388 <a name="m5" doxytag="connection::bytes_in"></a><p>
389 <table width="100%" cellpadding="2" cellspacing="0" border="0">
392 <table cellpadding="0" cellspacing="0" border="0">
394 <td class="md" nowrap valign="top"> long connection::bytes_in
399 <table cellspacing=5 cellpadding=0 border=0>
409 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>.
411 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
414 <a name="m6" doxytag="connection::bytes_out"></a><p>
415 <table width="100%" cellpadding="2" cellspacing="0" border="0">
418 <table cellpadding="0" cellspacing="0" border="0">
420 <td class="md" nowrap valign="top"> long connection::bytes_out
425 <table cellspacing=5 cellpadding=0 border=0>
435 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>.
437 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
440 <a name="m7" doxytag="connection::cmds_in"></a><p>
441 <table width="100%" cellpadding="2" cellspacing="0" border="0">
444 <table cellpadding="0" cellspacing="0" border="0">
446 <td class="md" nowrap valign="top"> long connection::cmds_in
451 <table cellspacing=5 cellpadding=0 border=0>
461 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>.
463 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
466 <a name="m8" doxytag="connection::cmds_out"></a><p>
467 <table width="100%" cellpadding="2" cellspacing="0" border="0">
470 <table cellpadding="0" cellspacing="0" border="0">
472 <td class="md" nowrap valign="top"> long connection::cmds_out
477 <table cellspacing=5 cellpadding=0 border=0>
487 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>.
489 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
492 <a name="m1" doxytag="connection::fd"></a><p>
493 <table width="100%" cellpadding="2" cellspacing="0" border="0">
496 <table cellpadding="0" cellspacing="0" border="0">
498 <td class="md" nowrap valign="top"> int connection::fd
503 <table cellspacing=5 cellpadding=0 border=0>
513 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>.
515 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>
518 <a name="m9" doxytag="connection::haspassed"></a><p>
519 <table width="100%" cellpadding="2" cellspacing="0" border="0">
522 <table cellpadding="0" cellspacing="0" border="0">
524 <td class="md" nowrap valign="top"> bool connection::haspassed
529 <table cellspacing=5 cellpadding=0 border=0>
539 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>.
541 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
544 <a name="m2" doxytag="connection::host"></a><p>
545 <table width="100%" cellpadding="2" cellspacing="0" border="0">
548 <table cellpadding="0" cellspacing="0" border="0">
550 <td class="md" nowrap valign="top"> char connection::host[256]
555 <table cellspacing=5 cellpadding=0 border=0>
565 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>
568 <a name="m14" doxytag="connection::idle_lastmsg"></a><p>
569 <table width="100%" cellpadding="2" cellspacing="0" border="0">
572 <table cellpadding="0" cellspacing="0" border="0">
574 <td class="md" nowrap valign="top"> time_t connection::idle_lastmsg
579 <table cellspacing=5 cellpadding=0 border=0>
589 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>.
591 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
594 <a name="m4" doxytag="connection::inbuf"></a><p>
595 <table width="100%" cellpadding="2" cellspacing="0" border="0">
598 <table cellpadding="0" cellspacing="0" border="0">
600 <td class="md" nowrap valign="top"> char connection::inbuf[MAXBUF]
605 <table cellspacing=5 cellpadding=0 border=0>
615 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>
618 <a name="m3" doxytag="connection::ip"></a><p>
619 <table width="100%" cellpadding="2" cellspacing="0" border="0">
622 <table cellpadding="0" cellspacing="0" border="0">
624 <td class="md" nowrap valign="top"> long connection::ip
629 <table cellspacing=5 cellpadding=0 border=0>
639 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>.
641 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
644 <a name="m0" doxytag="connection::key"></a><p>
645 <table width="100%" cellpadding="2" cellspacing="0" border="0">
648 <table cellpadding="0" cellspacing="0" border="0">
650 <td class="md" nowrap valign="top"> long connection::key
655 <table cellspacing=5 cellpadding=0 border=0>
665 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>
668 <a name="m12" doxytag="connection::lastping"></a><p>
669 <table width="100%" cellpadding="2" cellspacing="0" border="0">
672 <table cellpadding="0" cellspacing="0" border="0">
674 <td class="md" nowrap valign="top"> time_t connection::lastping
679 <table cellspacing=5 cellpadding=0 border=0>
689 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>.
691 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>
694 <a name="m15" doxytag="connection::nping"></a><p>
695 <table width="100%" cellpadding="2" cellspacing="0" border="0">
698 <table cellpadding="0" cellspacing="0" border="0">
700 <td class="md" nowrap valign="top"> time_t connection::nping
705 <table cellspacing=5 cellpadding=0 border=0>
715 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>.
717 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
720 <a name="m10" doxytag="connection::port"></a><p>
721 <table width="100%" cellpadding="2" cellspacing="0" border="0">
724 <table cellpadding="0" cellspacing="0" border="0">
726 <td class="md" nowrap valign="top"> int connection::port
731 <table cellspacing=5 cellpadding=0 border=0>
741 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>.
743 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
746 <a name="m11" doxytag="connection::registered"></a><p>
747 <table width="100%" cellpadding="2" cellspacing="0" border="0">
750 <table cellpadding="0" cellspacing="0" border="0">
752 <td class="md" nowrap valign="top"> int connection::registered
757 <table cellspacing=5 cellpadding=0 border=0>
767 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>.
769 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
772 <a name="m13" doxytag="connection::signon"></a><p>
773 <table width="100%" cellpadding="2" cellspacing="0" border="0">
776 <table cellpadding="0" cellspacing="0" border="0">
778 <td class="md" nowrap valign="top"> time_t connection::signon
783 <table cellspacing=5 cellpadding=0 border=0>
793 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>.
795 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>
798 <hr>The documentation for this class was generated from the following file:<ul>
799 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
800 <hr><address style="align: right;"><small>Generated on Sun Feb 9 12:48:18 2003 for InspIRCd by
801 <a href="http://www.doxygen.org/index.html">
802 <img src="doxygen.png" alt="doxygen" align="middle" border=0
803 width=110 height=53></a>1.3-rc2 </small></address>