M
mirandacascade
Version of python: 2.4
O/S: Win2K
I will be writing some python scripts to do some client-side
programming that involves socket.py. I expect that I will be making
calls to the following methods/functions:
connect_ex()
setsockopt()
sendall()
recv()
close()
Where can one find information about whether the functions/methods
above return error codes that provide some indication as to whether the
function/method succeeded? Is there an exception class for handling
exceptions raised in socket.py? If so, where can one find information
about it?
I consulted the docstrings and didn't find much about return codes or
exception classes. Also looked at the Lutz "Programming Python"
text...it devotes several pages to socket programming, but I didn't
observe much with regard to error/exception handling.
O/S: Win2K
I will be writing some python scripts to do some client-side
programming that involves socket.py. I expect that I will be making
calls to the following methods/functions:
connect_ex()
setsockopt()
sendall()
recv()
close()
Where can one find information about whether the functions/methods
above return error codes that provide some indication as to whether the
function/method succeeded? Is there an exception class for handling
exceptions raised in socket.py? If so, where can one find information
about it?
I consulted the docstrings and didn't find much about return codes or
exception classes. Also looked at the Lutz "Programming Python"
text...it devotes several pages to socket programming, but I didn't
observe much with regard to error/exception handling.