python: Moved the Python 3 files to their own directory and restored Python 2 files.
[ashd.git] / python / ashd / proto.py
index 92a21ca..4a48304 100644 (file)
@@ -10,6 +10,8 @@ ashd.util module provides an easier-to-use interface.
 import os, socket
 import htlib
 
+__all__ = ["req", "recvreq", "sendreq"]
+
 class protoerr(Exception):
     pass
 
@@ -114,7 +116,8 @@ def recvreq(sock = 0):
 
     The returned value is an instance of the `req' class. As per its
     description, care should be taken to close() the request when
-    done, to avoid leaking response sockets.
+    done, to avoid leaking response sockets. If end-of-file is
+    received on the socket, None is returned.
 
     This function may either raise on OSError if an error occurs on
     the socket, or a ashd.proto.protoerr if the incoming request is