summaryrefslogtreecommitdiff
path: root/ace/SOCK_Stream.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-10-31 09:07:58 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-10-31 09:07:58 +0000
commit87720d1fb9c6ff5b56ed79a43fe13c077199a822 (patch)
tree55361d379e07ed44f46ef7ad0772b5d3d5209166 /ace/SOCK_Stream.h
parent267685af03949eb809efb6f6b240c92e1aa086b1 (diff)
downloadATCD-87720d1fb9c6ff5b56ed79a43fe13c077199a822.tar.gz
Jammer
Diffstat (limited to 'ace/SOCK_Stream.h')
-rw-r--r--ace/SOCK_Stream.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ace/SOCK_Stream.h b/ace/SOCK_Stream.h
index cde111fc63a..826ede89c17 100644
--- a/ace/SOCK_Stream.h
+++ b/ace/SOCK_Stream.h
@@ -41,6 +41,21 @@ public:
ssize_t recv_n (void *buf, int n, int flags) const;
// Recv n bytes, keep trying until n are received.
+ ssize_t send_n (const void *buf, size_t len, int flags,
+ const ACE_Time_Value *timeout);
+ // Try to send exactly <len> bytes into <buf> from <handle> (uses
+ // the <send> call). If <send> blocks for longer than <timeout> the
+ // number of bytes actually sent is returned with <errno == ETIME>.
+ // If a timeout does not occur, <send_n> return <len> (i.e., the
+ // number of bytes requested to be sent).
+
+ ssize_t recv_n (void *buf, size_t len, int flags,
+ const ACE_Time_Value *timeout);
+ // Wait up to <timeout> amount of time to receive up to <len> bytes
+ // into <buf> from <handle> (uses the <recv> call). If <recv> times
+ // out a -1 is returned with <errno == ETIME>. If it succeeds the
+ // number of bytes received is returned.
+
// = Send/receive an ``urgent'' character (see TCP specs...).
ssize_t send_urg (void *ptr, int len = sizeof (char));
ssize_t recv_urg (void *ptr, int len = sizeof (char));