<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3488" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-01-20T15:25:42-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3488</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-20T15:25:42-04:00</updated>

		<published>2003-01-20T15:25:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15573#p15573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15573#p15573"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15573#p15573"><![CDATA[
OK, I think I got it working now. It's not pinging out. Just fiddled around a bit with that piece of code egghead gave me. and it's staying connected. <div class="codebox"><p>Code: </p><pre><code>proc connect:rcv { idx text } {# if connection closed: control back to eggdrop   if { $text == "" } {       putlog "RCV: connection closed by server."      return 1   }   #----------&gt;This Part&lt;-----------   if {[scan $text {8 :%s} pword] == 1 } {    # Server sent PING    putidx $idx "PONG :$pword"    putlog "PONG: $pword"   return 0 }    # putlog any text that eggdrop receives   putlog "$text"   # new text should come to this proc   return 0}</code></pre></div>The "8" was actually the ping reply numeric from the IRCD. So by changing "PING" to "8", the script responds.<br>Thx so much for all you patience ppslim and egghead.<p>Statistics: Posted by Guest — Mon Jan 20, 2003 3:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-20T15:13:28-04:00</updated>

		<published>2003-01-20T15:13:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15572#p15572</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15572#p15572"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15572#p15572"><![CDATA[
ok. I'll see if I can find one and take a look at it. This was soo much easier with mirc. lol Thx again for all your help.<p>Statistics: Posted by Guest — Mon Jan 20, 2003 3:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-20T15:12:30-04:00</updated>

		<published>2003-01-20T15:12:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15571#p15571</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15571#p15571"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15571#p15571"><![CDATA[
Other method to obtain the information, include downloading a ready made service bot, and trying to figure out, what does what.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 20, 2003 3:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-20T13:39:05-04:00</updated>

		<published>2003-01-20T13:39:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15568#p15568</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15568#p15568"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15568#p15568"><![CDATA[
<blockquote class="uncited"><div>Still getting the same result. Here is a log from eggdrop -n if it helps<br><br><a href="http://www.scifi-net.org/archive/log.txt" class="postlink">http://www.scifi-net.org/archive/log.txt</a></div></blockquote>As this is not a regular client-server communication session, you will need to figure out the specifics of the server-server protocol you use.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Jan 20, 2003 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-20T13:18:55-04:00</updated>

		<published>2003-01-20T13:18:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15567#p15567</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15567#p15567"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15567#p15567"><![CDATA[
Still getting the same result. Here is a log from eggdrop -n if it helps<br><br><a href="http://www.scifi-net.org/archive/log.txt" class="postlink">http://www.scifi-net.org/archive/log.txt</a><p>Statistics: Posted by Guest — Mon Jan 20, 2003 1:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-20T12:51:04-04:00</updated>

		<published>2003-01-20T12:51:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15566#p15566</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15566#p15566"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15566#p15566"><![CDATA[
There is no need to use listen, unless you are attempting to listen and accept connections.<br><br>If you are making the connection from eggdrop, to the server, as a service, then no, you don't need a listening socket.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 20, 2003 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-20T12:53:25-04:00</updated>

		<published>2003-01-20T12:12:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15564#p15564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15564#p15564"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15564#p15564"><![CDATA[
Thx egghead. I'm allready sending through the server protoccols, nick and user info. Thx again for you help.<br><br>Something else I just thought of, thx to ppslim  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br>Should I have a listen &lt;port&gt; &lt;type&gt; to catch the pings?<br>Gonna try that scriptlet egghead sent.<br><br>Here's a look at the entire tcl<br><a href="http://www.scifi-net.org/archive/socket.txt" class="postlink">http://www.scifi-net.org/archive/socket.txt</a><br><br>and a look at the log I'm recieving from eggdrop -n<br><a href="http://www.scifi-net.org/archive/log.txt" class="postlink">http://www.scifi-net.org/archive/log.txt</a><p>Statistics: Posted by Guest — Mon Jan 20, 2003 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-20T12:12:01-04:00</updated>

		<published>2003-01-20T12:12:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15563#p15563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15563#p15563"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15563#p15563"><![CDATA[
After looking at RFC 1459, and the suplimentry RFC's (2813, 2812) (all are available <a href="http://www.irchelp.org/irchelp/rfc/" class="postlink">HERE</a>), it seems that you are not receiving the PING.<br><br>The output (with blue highlighting), shows no signs of a incoming PING that needs a reply.<br><br>Can you show the exact code you are using, as the code posted, doesn't seem at all wrong.<br><br>After some more reading of your post, it seems that the output is garbled. There is a number 8 on the line. From what I can see, 8 is also the IDX of the connection.<br><br>For more information on PING and PONG, see points 3.7.2 and 3.7.3 in RFC 2812.<br><br>See tcl-commands.doc for the correct usage of the putdcc command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 20, 2003 12:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-20T12:06:50-04:00</updated>

		<published>2003-01-20T12:06:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15562#p15562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15562#p15562"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15562#p15562"><![CDATA[
<blockquote class="uncited"><div>Making a services based connection. The only thing I really need help with is maintaining the socket connection with pong replies. The rest I can figure out on my own. Thx</div></blockquote>Below the part<br><div class="codebox"><p>Code: </p><pre><code>if { $text == "" } {       putlog "RCV: connection closed by server."      return 1}</code></pre></div>insert<br><div class="codebox"><p>Code: </p><pre><code>if {[scan $text {PING :%s} pword] == 1 } {   # Server sent PING   putidx $idx "PONG :$pword"   return 0}</code></pre></div>Note that upon making the connection to that IRC server you also must send the USER/NICK info. Read rfc1459 on the syntax for USER/NICK.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Jan 20, 2003 12:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-20T11:56:23-04:00</updated>

		<published>2003-01-20T11:56:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15561#p15561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15561#p15561"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15561#p15561"><![CDATA[
Making a services based connection. The only thing I really need help with is maintaining the socket connection with pong replies. The rest I can figure out on my own. Thx<p>Statistics: Posted by Guest — Mon Jan 20, 2003 11:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-20T05:39:42-04:00</updated>

		<published>2003-01-20T05:39:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15551#p15551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15551#p15551"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15551#p15551"><![CDATA[
Read the IRC RFC (1459). This includes both server-server, and clinet-server connections.<br><br>My guess, is you are using a non-standard based protocol.<br><br>Are you making a services, client or server based connection to the IRCD.<br><br>These three are all different, though there isn't much between the server, and clinet based connections.<br><br>There is a suplimetary RFC (though I don't know the number, or know if it's even official) in regards to services based connections.<br><br>THese are all beyond the scope of the egghelp.org forums.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 20, 2003 5:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-19T22:42:09-04:00</updated>

		<published>2003-01-19T22:42:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15546#p15546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15546#p15546"/>
		<title type="html"><![CDATA[Still needing help with maintaining a socket connection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15546#p15546"><![CDATA[
I've tried a few different ways to send a pong to the ircd. Here's what I"m getting in ssh<blockquote class="uncited"><div>[21:31] RCV: @1a n Eggserv +d 5254<br><span style="color:blue">[21:32] RCV: 8 :Xion.scifi-net.org</span><br>[21:34] RCV: :Xion.scifi-net.org GNOTICE :No response from eggserv.scifi-net.org[*], closing link<br>[21:34] RCV: ERROR :Closing Link: eggserv.scifi-net.org[*] (Ping timeout)<br>[21:34] net: eof!(read) socket 8<br>[21:34] RCV: connection closed by server.<br>[21:34] -NOTICE- *** Notice -- No response from eggserv.scifi-net.org[*], closing link</div></blockquote>The blue part is the ping to the connection. How would I insert a pong? I've tried a few things, like putdcc PONG my.services.name, just using PONG. and a few others. Any ideas? If you would like to see the entire script I"m using, let me know and I'll upload it to my site and make a link. <br><br>Thx to egghead for the following scriptlet that I'm using.<blockquote class="uncited"><div>proc connect:rcv { idx text } {<br># if connection closed: control back to eggdrop<br>   if { $text == "" } { <br>      putlog "RCV: connection closed by server."<br>      return 1<br>   }<br>   # putlog any text that eggdrop receives<br>   putlog "RCV: $text"<br>   # new text should come to this proc<br>   return 0<br>}</div></blockquote>Any ideas would be greatly appreciated<p>Statistics: Posted by Guest — Sun Jan 19, 2003 10:42 pm</p><hr />
]]></content>
	</entry>
	</feed>
