summaryrefslogtreecommitdiff
path: root/ace/SOCK_Dgram.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-09 04:55:56 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-05-09 04:55:56 +0000
commitaddafc86107ca1e642c1ed1f2b634aabbae1558c (patch)
treeb32bf9d335bfb489169ff4e48a944d481cb11775 /ace/SOCK_Dgram.h
parent1caed6b960388384e58af42f411f48dc429340fe (diff)
downloadATCD-addafc86107ca1e642c1ed1f2b634aabbae1558c.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/SOCK_Dgram.h')
-rw-r--r--ace/SOCK_Dgram.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/ace/SOCK_Dgram.h b/ace/SOCK_Dgram.h
index f754d8cb64c..b2969afb03f 100644
--- a/ace/SOCK_Dgram.h
+++ b/ace/SOCK_Dgram.h
@@ -56,7 +56,9 @@ public:
// Receive an <n> byte <buf> from the datagram socket (uses
// recvfrom(3)).
- ssize_t recv (iovec *io_vec, ACE_Addr &addr, int flags) const;
+ ssize_t recv (iovec *io_vec,
+ ACE_Addr &addr,
+ int flags) const;
// Allows a client to read from a socket without having to provide a
// buffer to read. This method determines how much data is in the
// socket, allocates a buffer of this size, reads in the data, and
@@ -77,6 +79,19 @@ public:
// Recv an <iovec> of size <n> to the datagram socket (uses
// recvmsg(3)).
+ ssize_t recv (void *buf,
+ size_t n,
+ ACE_Addr &addr,
+ int flags,
+ const ACE_Time_Value *timeout) const;
+ // Wait up to <timeout> amount of time to receive a datagram into
+ // <buf>. The <ACE_Time_Value> indicates how long to blocking
+ // trying to receive. If <timeout> == 0, the caller will block
+ // until action is possible, else will wait until the relative time
+ // specified in *<timeout> elapses). If <recv> times out a -1 is
+ // returned with <errno == ETIME>. If it succeeds the number of
+ // bytes received is returned.
+
void dump (void) const;
// Dump the state of an object.