SSL Socket EOF protocol violation
Fredrik Lundh
fredrik at pythonware.com
Tue May 25 08:56:08 EDT 2004
"Josh" wrote:
> s.connect( host, port )
>
> ssl_object = socket.ssl( s );
>
> I don't understand the error, because I think connect takes 2
> arguments according to the docs at the python.org site.
where did you look? the current documentation at
http://docs.python.org/lib/socket-objects.html
says:
connect(address)
Connect to a remote socket at address. (The format of address depends
on the address family -- see above.)
and then says:
Note: This method has historically accepted a pair of parameters for AF_INET
addresses instead of only a tuple. This was never intentional and is no longer
available in Python 2.0 and later.
hope this helps!
</F>
More information about the Python-list
mailing list