<?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/7187" />

	<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>2004-04-05T09:57:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-04-05T09:57:57-04:00</updated>

		<published>2004-04-05T09:57:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35246#p35246</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35246#p35246"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35246#p35246"><![CDATA[
user you are the best. Thx!!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Mon Apr 05, 2004 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-04T19:00:31-04:00</updated>

		<published>2004-04-04T19:00:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35226#p35226</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35226#p35226"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35226#p35226"><![CDATA[
'fcopy' deals with file channels. You'll have to use 'socket', not 'connect' if you want a file channel. And there's no need to convert the ip because 'socket' understands the decimal ip as it is in the ctcp just fine.<br><br>Here's a couple of procs to convert ips anyway <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><div class="codebox"><p>Code: </p><pre><code>proc dec2dot ip {join [scan [format %.8X $ip] %2x%2x%2x%2x] .}proc dot2dec ip {format %u 0x[eval format %.2X%.2X%.2X%.2X [split $ip .]]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Apr 04, 2004 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-04-04T18:32:35-04:00</updated>

		<published>2004-04-04T18:32:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35225#p35225</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35225#p35225"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35225#p35225"><![CDATA[
Ofloo thanks.<br><br>Is there any procedure for longip2ip?<br><br>Is my code with fcopy correct? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Sun Apr 04, 2004 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-04T17:17:56-04:00</updated>

		<published>2004-04-04T17:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35223#p35223</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35223#p35223"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35223#p35223"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc ip2longip {ipaddr} {  foreach ipbyte [split $ipaddr \x2E] {     append hexaddr [format {%02x} $ipbyte]   }   return [format {%u} "0x$hexaddr"] }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Sun Apr 04, 2004 5:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-04-04T16:20:32-04:00</updated>

		<published>2004-04-04T16:20:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35220#p35220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35220#p35220"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35220#p35220"><![CDATA[
Is this correct?<br><div class="codebox"><p>Code: </p><pre><code>proc fsdb:receive:file { id file host port } {    global fsdb    set outfile [open "$fsdb(tempdir)$file" w]    set infile [connect $host $port]    fcopy $infile $outfile -command [list fsdb:end:file $id $infile $outfile]    vwait total($id)}proc fsdb:end:file { id infile outfile bytes {error {}} } {    global total    set total($id) $bytes    close $infile; close $outfile    if {[string length $error] != 0} { lkdsl }}</code></pre></div>How could I take an standard ip from a longip format?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Sun Apr 04, 2004 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-04-02T13:13:45-04:00</updated>

		<published>2004-04-02T13:13:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35159#p35159</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35159#p35159"/>
		<title type="html"><![CDATA[Re: Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35159#p35159"><![CDATA[
<blockquote class="uncited"><div>I don't know if the topic is the best, but this is that I want to do:<br><br>I have connected to a server througth connect and listen commands.<br>Someone from this server sent me a dcc file. How could I take this file.<br><br>1) What should I do when I see the ctcp dcc send command? Just open a listen port in my eggdrop and send ctcp dcc send accept command?<br><br>2) When the transfer begins, how could be sure that the file saves in binary format (is this right?)?</div></blockquote>Eggdrop's socket commands can't be used to transmit binary data. Use '<a href="http://tcl.tk/man/tcl8.5/TclCmd/socket.htm" class="postlink">socket</a>' or the commands provided by the transfer module.<br>Opening a listening socket won't do you much good <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br>When you get a ctcp "dcc send" you'll have to connect to the ip and port provided in the ctcp. The transfer begins as soon as you connect, so just save whatever you recieve after connecting. (using '<a href="http://tcl.tk/man/tcl8.5/TclCmd/fcopy.htm" class="postlink">fcopy</a>' can make this part alot easier)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Apr 02, 2004 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-04-02T12:15:43-04:00</updated>

		<published>2004-04-02T12:15:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35153#p35153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35153#p35153"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35153#p35153"><![CDATA[
dccsend command should take care of this unless ur willing to write one of ur own .. load the transfer module<br><br>hmm and to answer ur question i think its like this open the file fconfigure the channel to bin then read it and send it to the socket or idx if u prefer that .. maybe could use <br><blockquote class="uncited"><div>filesend &lt;idx&gt; &lt;filename&gt; [ircnick] </div></blockquote>command if u wana do it like this .. then i gues u don't have to open the file and read it u just could do filesend<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Apr 02, 2004 12:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-04-01T18:28:57-04:00</updated>

		<published>2004-04-01T18:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35139#p35139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35139#p35139"/>
		<title type="html"><![CDATA[Download file from socket]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35139#p35139"><![CDATA[
I don't know if the topic is the best, but this is that I want to do:<br><br>I have connected to a server througth connect and listen commands.<br>Someone from this server sent me a dcc file. How could I take this file.<br><br>1) What should I do when I see the ctcp dcc send command? Just open a listen port in my eggdrop and send ctcp dcc send accept command?<br><br>2) When the transfer begins, how could be sure that the file saves in binary format (is this right?)?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Thu Apr 01, 2004 6:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
