X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=python%2Fashd%2Fproto.py;h=8dc5ecd133c2ff63cd54978e7879fa809d843010;hp=c1ae1b0a2686b5e02df739a3c08fba8eafedd46c;hb=f56b079086cb35e50697a4752b38679ae5e44679;hpb=4d2dc22a9a68395a5788ae66c84ae0ced2d0e733 diff --git a/python/ashd/proto.py b/python/ashd/proto.py index c1ae1b0..8dc5ecd 100644 --- a/python/ashd/proto.py +++ b/python/ashd/proto.py @@ -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 @@ -117,8 +119,8 @@ def recvreq(sock = 0): 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 + This function may either raise an OSError if an error occurs on + the socket, or an ashd.proto.protoerr if the incoming request is invalidly encoded. """ data, fd = htlib.recvfd(sock)