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="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>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>, long ourkey)</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, long &theirkey)</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>
50 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m16">internal_addr</a> [1024]</td></tr>
52 <hr><h2>Constructor & Destructor Documentation</h2>
53 <a name="a0" doxytag="connection::connection"></a><p>
54 <table width="100%" cellpadding="2" cellspacing="0" border="0">
57 <table cellpadding="0" cellspacing="0" border="0">
59 <td class="md" nowrap valign="top"> connection::connection </td>
60 <td class="md" valign="top">( </td>
61 <td class="mdname1" valign="top" nowrap> </td>
62 <td class="md" valign="top">) </td>
63 <td class="md" nowrap></td>
70 <table cellspacing=5 cellpadding=0 border=0>
81 <hr><h2>Member Function Documentation</h2>
82 <a name="a2" doxytag="connection::BeginLink"></a><p>
83 <table width="100%" cellpadding="2" cellspacing="0" border="0">
86 <table cellpadding="0" cellspacing="0" border="0">
88 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
89 <td class="md" valign="top">( </td>
90 <td class="md" nowrap valign="top">char * </td>
91 <td class="mdname" nowrap> <em>targethost</em>, </td>
96 <td class="md" nowrap>int </td>
97 <td class="mdname" nowrap> <em>port</em>, </td>
102 <td class="md" nowrap>char * </td>
103 <td class="mdname" nowrap> <em>password</em></td>
107 <td class="md">) </td>
108 <td class="md" colspan="2"></td>
115 <table cellspacing=5 cellpadding=0 border=0>
126 <a name="a1" doxytag="connection::CreateListener"></a><p>
127 <table width="100%" cellpadding="2" cellspacing="0" border="0">
130 <table cellpadding="0" cellspacing="0" border="0">
132 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
133 <td class="md" valign="top">( </td>
134 <td class="md" nowrap valign="top">char * </td>
135 <td class="mdname" nowrap> <em>host</em>, </td>
140 <td class="md" nowrap>int </td>
141 <td class="mdname" nowrap> <em>p</em></td>
145 <td class="md">) </td>
146 <td class="md" colspan="2"></td>
153 <table cellspacing=5 cellpadding=0 border=0>
164 <a name="a8" doxytag="connection::GenKey"></a><p>
165 <table width="100%" cellpadding="2" cellspacing="0" border="0">
168 <table cellpadding="0" cellspacing="0" border="0">
170 <td class="md" nowrap valign="top"> long connection::GenKey </td>
171 <td class="md" valign="top">( </td>
172 <td class="mdname1" valign="top" nowrap> </td>
173 <td class="md" valign="top">) </td>
174 <td class="md" nowrap></td>
181 <table cellspacing=5 cellpadding=0 border=0>
192 <a name="a5" doxytag="connection::RecvPacket"></a><p>
193 <table width="100%" cellpadding="2" cellspacing="0" border="0">
196 <table cellpadding="0" cellspacing="0" border="0">
198 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
199 <td class="md" valign="top">( </td>
200 <td class="md" nowrap valign="top">char * </td>
201 <td class="mdname" nowrap> <em>message</em>, </td>
206 <td class="md" nowrap>char * </td>
207 <td class="mdname" nowrap> <em>host</em>, </td>
212 <td class="md" nowrap>int & </td>
213 <td class="mdname" nowrap> <em>prt</em>, </td>
218 <td class="md" nowrap>long & </td>
219 <td class="mdname" nowrap> <em>theirkey</em></td>
223 <td class="md">) </td>
224 <td class="md" colspan="2"></td>
231 <table cellspacing=5 cellpadding=0 border=0>
242 <a name="a7" doxytag="connection::SendACK"></a><p>
243 <table width="100%" cellpadding="2" cellspacing="0" border="0">
246 <table cellpadding="0" cellspacing="0" border="0">
248 <td class="md" nowrap valign="top"> bool connection::SendACK </td>
249 <td class="md" valign="top">( </td>
250 <td class="md" nowrap valign="top">char * </td>
251 <td class="mdname" nowrap> <em>host</em>, </td>
256 <td class="md" nowrap>int </td>
257 <td class="mdname" nowrap> <em>port</em>, </td>
262 <td class="md" nowrap>int </td>
263 <td class="mdname" nowrap> <em>reply_id</em></td>
267 <td class="md">) </td>
268 <td class="md" colspan="2"></td>
275 <table cellspacing=5 cellpadding=0 border=0>
286 <a name="a4" doxytag="connection::SendPacket"></a><p>
287 <table width="100%" cellpadding="2" cellspacing="0" border="0">
290 <table cellpadding="0" cellspacing="0" border="0">
292 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
293 <td class="md" valign="top">( </td>
294 <td class="md" nowrap valign="top">char * </td>
295 <td class="mdname" nowrap> <em>message</em>, </td>
300 <td class="md" nowrap>char * </td>
301 <td class="mdname" nowrap> <em>host</em>, </td>
306 <td class="md" nowrap>int </td>
307 <td class="mdname" nowrap> <em>port</em>, </td>
312 <td class="md" nowrap>long </td>
313 <td class="mdname" nowrap> <em>ourkey</em></td>
317 <td class="md">) </td>
318 <td class="md" colspan="2"></td>
325 <table cellspacing=5 cellpadding=0 border=0>
336 <a name="a6" doxytag="connection::SendSYN"></a><p>
337 <table width="100%" cellpadding="2" cellspacing="0" border="0">
340 <table cellpadding="0" cellspacing="0" border="0">
342 <td class="md" nowrap valign="top"> bool connection::SendSYN </td>
343 <td class="md" valign="top">( </td>
344 <td class="md" nowrap valign="top">char * </td>
345 <td class="mdname" nowrap> <em>host</em>, </td>
350 <td class="md" nowrap>int </td>
351 <td class="mdname" nowrap> <em>port</em></td>
355 <td class="md">) </td>
356 <td class="md" colspan="2"></td>
363 <table cellspacing=5 cellpadding=0 border=0>
374 <a name="a3" doxytag="connection::TerminateLink"></a><p>
375 <table width="100%" cellpadding="2" cellspacing="0" border="0">
378 <table cellpadding="0" cellspacing="0" border="0">
380 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
381 <td class="md" valign="top">( </td>
382 <td class="md" nowrap valign="top">char * </td>
383 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
384 <td class="md" valign="top">) </td>
385 <td class="md" nowrap></td>
392 <table cellspacing=5 cellpadding=0 border=0>
403 <hr><h2>Member Data Documentation</h2>
404 <a name="m5" doxytag="connection::bytes_in"></a><p>
405 <table width="100%" cellpadding="2" cellspacing="0" border="0">
408 <table cellpadding="0" cellspacing="0" border="0">
410 <td class="md" nowrap valign="top"> long connection::bytes_in
415 <table cellspacing=5 cellpadding=0 border=0>
425 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>.
427 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
430 <a name="m6" doxytag="connection::bytes_out"></a><p>
431 <table width="100%" cellpadding="2" cellspacing="0" border="0">
434 <table cellpadding="0" cellspacing="0" border="0">
436 <td class="md" nowrap valign="top"> long connection::bytes_out
441 <table cellspacing=5 cellpadding=0 border=0>
451 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>.
453 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
456 <a name="m7" doxytag="connection::cmds_in"></a><p>
457 <table width="100%" cellpadding="2" cellspacing="0" border="0">
460 <table cellpadding="0" cellspacing="0" border="0">
462 <td class="md" nowrap valign="top"> long connection::cmds_in
467 <table cellspacing=5 cellpadding=0 border=0>
477 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>.
479 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
482 <a name="m8" doxytag="connection::cmds_out"></a><p>
483 <table width="100%" cellpadding="2" cellspacing="0" border="0">
486 <table cellpadding="0" cellspacing="0" border="0">
488 <td class="md" nowrap valign="top"> long connection::cmds_out
493 <table cellspacing=5 cellpadding=0 border=0>
503 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>.
505 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
508 <a name="m1" doxytag="connection::fd"></a><p>
509 <table width="100%" cellpadding="2" cellspacing="0" border="0">
512 <table cellpadding="0" cellspacing="0" border="0">
514 <td class="md" nowrap valign="top"> int connection::fd
519 <table cellspacing=5 cellpadding=0 border=0>
529 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>.
531 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>
534 <a name="m9" doxytag="connection::haspassed"></a><p>
535 <table width="100%" cellpadding="2" cellspacing="0" border="0">
538 <table cellpadding="0" cellspacing="0" border="0">
540 <td class="md" nowrap valign="top"> bool connection::haspassed
545 <table cellspacing=5 cellpadding=0 border=0>
555 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>.
557 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
560 <a name="m2" doxytag="connection::host"></a><p>
561 <table width="100%" cellpadding="2" cellspacing="0" border="0">
564 <table cellpadding="0" cellspacing="0" border="0">
566 <td class="md" nowrap valign="top"> char connection::host[256]
571 <table cellspacing=5 cellpadding=0 border=0>
581 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>. </td>
584 <a name="m14" doxytag="connection::idle_lastmsg"></a><p>
585 <table width="100%" cellpadding="2" cellspacing="0" border="0">
588 <table cellpadding="0" cellspacing="0" border="0">
590 <td class="md" nowrap valign="top"> time_t connection::idle_lastmsg
595 <table cellspacing=5 cellpadding=0 border=0>
605 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>.
607 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
610 <a name="m4" doxytag="connection::inbuf"></a><p>
611 <table width="100%" cellpadding="2" cellspacing="0" border="0">
614 <table cellpadding="0" cellspacing="0" border="0">
616 <td class="md" nowrap valign="top"> char connection::inbuf[MAXBUF]
621 <table cellspacing=5 cellpadding=0 border=0>
631 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>. </td>
634 <a name="m16" doxytag="connection::internal_addr"></a><p>
635 <table width="100%" cellpadding="2" cellspacing="0" border="0">
638 <table cellpadding="0" cellspacing="0" border="0">
640 <td class="md" nowrap valign="top"> char connection::internal_addr[1024]
645 <table cellspacing=5 cellpadding=0 border=0>
655 Definition at line <a class="el" href="connection_8h-source.html#l00058">58</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
658 <a name="m3" doxytag="connection::ip"></a><p>
659 <table width="100%" cellpadding="2" cellspacing="0" border="0">
662 <table cellpadding="0" cellspacing="0" border="0">
664 <td class="md" nowrap valign="top"> long connection::ip
669 <table cellspacing=5 cellpadding=0 border=0>
679 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>.
681 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
684 <a name="m0" doxytag="connection::key"></a><p>
685 <table width="100%" cellpadding="2" cellspacing="0" border="0">
688 <table cellpadding="0" cellspacing="0" border="0">
690 <td class="md" nowrap valign="top"> long connection::key
695 <table cellspacing=5 cellpadding=0 border=0>
705 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>. </td>
708 <a name="m12" doxytag="connection::lastping"></a><p>
709 <table width="100%" cellpadding="2" cellspacing="0" border="0">
712 <table cellpadding="0" cellspacing="0" border="0">
714 <td class="md" nowrap valign="top"> time_t connection::lastping
719 <table cellspacing=5 cellpadding=0 border=0>
729 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>.
731 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>
734 <a name="m15" doxytag="connection::nping"></a><p>
735 <table width="100%" cellpadding="2" cellspacing="0" border="0">
738 <table cellpadding="0" cellspacing="0" border="0">
740 <td class="md" nowrap valign="top"> time_t connection::nping
745 <table cellspacing=5 cellpadding=0 border=0>
755 Definition at line <a class="el" href="connection_8h-source.html#l00057">57</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
757 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
760 <a name="m10" doxytag="connection::port"></a><p>
761 <table width="100%" cellpadding="2" cellspacing="0" border="0">
764 <table cellpadding="0" cellspacing="0" border="0">
766 <td class="md" nowrap valign="top"> int connection::port
771 <table cellspacing=5 cellpadding=0 border=0>
781 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>.
783 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
786 <a name="m11" doxytag="connection::registered"></a><p>
787 <table width="100%" cellpadding="2" cellspacing="0" border="0">
790 <table cellpadding="0" cellspacing="0" border="0">
792 <td class="md" nowrap valign="top"> int connection::registered
797 <table cellspacing=5 cellpadding=0 border=0>
807 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>.
809 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
812 <a name="m13" doxytag="connection::signon"></a><p>
813 <table width="100%" cellpadding="2" cellspacing="0" border="0">
816 <table cellpadding="0" cellspacing="0" border="0">
818 <td class="md" nowrap valign="top"> time_t connection::signon
823 <table cellspacing=5 cellpadding=0 border=0>
833 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>.
835 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>
838 <hr>The documentation for this class was generated from the following file:<ul>
839 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
840 <hr><address style="align: right;"><small>Generated on Tue Apr 6 11:42:41 2004 for InspIRCd by
841 <a href="http://www.doxygen.org/index.html">
842 <img src="doxygen.png" alt="doxygen" align="middle" border=0
843 width=110 height=53></a>1.3-rc3 </small></address>