diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-02 21:02:20 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-07-02 21:02:20 +0000 |
commit | 70d64c82bf9347563b4242d5c43cbca3a0176fcf (patch) | |
tree | 079722fa7d30976badb35c975d96f51cc152586f /ace/SOCK_Dgram.h | |
parent | a4ef4a23df8d1240d07e61d9b05708ffdf1a07c3 (diff) | |
download | ATCD-70d64c82bf9347563b4242d5c43cbca3a0176fcf.tar.gz |
.
Diffstat (limited to 'ace/SOCK_Dgram.h')
-rw-r--r-- | ace/SOCK_Dgram.h | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/ace/SOCK_Dgram.h b/ace/SOCK_Dgram.h index 02fa97986d0..f781ca7f66d 100644 --- a/ace/SOCK_Dgram.h +++ b/ace/SOCK_Dgram.h @@ -75,14 +75,14 @@ public: size_t n, const ACE_Addr &addr, int flags = 0) const; - // Send an <n> byte <buf> to the datagram socket (uses sendto(3)). + // Send an <n> byte <buf> to the datagram socket (uses <sendto(3)>). ssize_t recv (void *buf, size_t n, ACE_Addr &addr, int flags = 0) const; // Receive an <n> byte <buf> from the datagram socket (uses - // recvfrom(3)). + // <recvfrom(3)>). ssize_t recv (iovec *io_vec, ACE_Addr &addr, @@ -100,14 +100,14 @@ public: const ACE_Addr &addr, int flags = 0) const; // Send an <iovec> of size <n> to the datagram socket (uses - // sendmsg(3)). + // <sendmsg(3)>). ssize_t recv (iovec iov[], size_t n, ACE_Addr &addr, int flags = 0) const; // Recv an <iovec> of size <n> to the datagram socket (uses - // recvmsg(3)). + // <recvmsg(3)>). ssize_t recv (void *buf, size_t n, @@ -122,7 +122,7 @@ public: // returned with <errno == ETIME>. If it succeeds the number of // bytes received is returned. - ssize_t send (const iovec *buffers, + ssize_t send (const iovec buffers[], int buffer_count, size_t &number_of_bytes_sent, int flags, @@ -130,9 +130,9 @@ public: ACE_OVERLAPPED *overlapped, ACE_OVERLAPPED_COMPLETION_FUNC func) const; // Send <buffer_count> worth of <buffers> to <addr> using overlapped - // I/O. + // I/O (uses <WSASentTo>). Returns 0 on success. - ssize_t recv (iovec *buffers, + ssize_t recv (iovec buffers[], int buffer_count, size_t &number_of_bytes_recvd, int &flags, @@ -140,7 +140,24 @@ public: ACE_OVERLAPPED *overlapped, ACE_OVERLAPPED_COMPLETION_FUNC func) const; // Recv <buffer_count> worth of <buffers> from <addr> using - // overlapped I/O. + // overlapped I/O (uses <WSARecvFrom>). Returns 0 on success. + + ssize_t send (const void *buf, + size_t n, + const ACE_Addr &addr, + int flags = 0, + ACE_OVERLAPPED *overlapped, + ACE_OVERLAPPED_COMPLETION_FUNC func) const; + // Send an <n> byte <buf> to the datagram socket (uses <WSASentTo>). + + ssize_t recv (void *buf, + size_t n, + ACE_Addr &addr, + int flags = 0, + ACE_OVERLAPPED *overlapped, + ACE_OVERLAPPED_COMPLETION_FUNC func) const; + // Receive an <n> byte <buf> from the datagram socket (uses + // <WSARecvFrom>). void dump (void) const; // Dump the state of an object. |