the mail sample code worked fine for me, but the echo server code keeps giving me this error<br><br> File "echo-server", line 10, in <module><br> (client_sock, client_address) = sock.accept()<br> File "/opt/lib/python2.5/socket.py"<div id=":3l" class="ii gt">
, line 167, in accept<br> sock, addr = self._sock.accept()<br>
socket.error: (22, 'Invalid argument')<br><br>anyone else having trouble with it?<br></div><br><br><div class="gmail_quote">On Sun, Sep 27, 2009 at 5:20 PM, Joe Amenta <span dir="ltr"><<a href="mailto:amentajo@msu.edu">amentajo@msu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am having no problem with the example code.<br><br><span style="font-family: courier new,monospace;">[17:18][joe@joe-desktop] ~ $ python</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18) </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[GCC 4.3.3] on linux2</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Type "help", "copyright", "credits" or "license" for more information.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">>>> import socket</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">>>> sock = socket.socket()</span><div class="im">
<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">>>> sock.connect(("<a href="http://teckla.idyll.org" target="_blank">teckla.idyll.org</a>", 25))</span><br style="font-family: courier new,monospace;">
</div><span style="font-family: courier new,monospace;">>>> sock.recv(4096)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">'220 <a href="http://teckla.idyll.org" target="_blank">teckla.idyll.org</a> ESMTP Exim 4.63 Sun, 27 Sep 2009 14:18:31 -0700\r\n'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">>>> </span><br><br>--Joe<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Sun, Sep 27, 2009 at 5:02 PM, Owen Pierce <span dir="ltr"><<a href="mailto:opierce@gmail.com" target="_blank">opierce@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Can anyone else run the example code from lab4? I'm trying to run the code from the<b> Sending mail - example</b>, but I keep getting <br>
<br>Traceback (most recent call last):<br> File "send-email", line 11, in <module><br>
sock.connect(('<a href="http://teckla.idyll.org" target="_blank">teckla.idyll.org</a>', 25))<br> File "<string>", line 1, in connect<br>socket.error: [Errno 113] No route to host<br>
<br></div></div>_______________________________________________<br>
cse491-fall-2009 mailing list<br>
<a href="mailto:cse491-fall-2009@lists.idyll.org" target="_blank">cse491-fall-2009@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/cse491-fall-2009" target="_blank">http://lists.idyll.org/listinfo/cse491-fall-2009</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
cse491-fall-2009 mailing list<br>
<a href="mailto:cse491-fall-2009@lists.idyll.org">cse491-fall-2009@lists.idyll.org</a><br>
<a href="http://lists.idyll.org/listinfo/cse491-fall-2009" target="_blank">http://lists.idyll.org/listinfo/cse491-fall-2009</a><br>
<br></blockquote></div><br>