summaryrefslogtreecommitdiff
path: root/docs/tutorials/003
diff options
context:
space:
mode:
authorjcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-30 18:17:02 +0000
committerjcej <jcej@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-30 18:17:02 +0000
commit6cea8d1fbf5b467f1084e7136bc6e906bf129aae (patch)
treec22508dbd8f919b067b61dba7fe15684e9572378 /docs/tutorials/003
parent85e485378a6681bcbd6aa78b1aad3f77f688e6a7 (diff)
downloadATCD-6cea8d1fbf5b467f1084e7136bc6e906bf129aae.tar.gz
*** empty log message ***
Diffstat (limited to 'docs/tutorials/003')
-rw-r--r--docs/tutorials/003/client.cpp6
-rw-r--r--docs/tutorials/003/page01.html6
2 files changed, 12 insertions, 0 deletions
diff --git a/docs/tutorials/003/client.cpp b/docs/tutorials/003/client.cpp
index 0886729b4e7..29bb77d2ce3 100644
--- a/docs/tutorials/003/client.cpp
+++ b/docs/tutorials/003/client.cpp
@@ -75,6 +75,12 @@ int main (int argc, char *argv[])
doesn't send all of the data, it is up to you to program things such that it will
keep trying until all of the data is sent or simply give up. The send_n() function
already does the "keep tyring" option for us, so we use it.
+
+ Like the send() method used in the servers we've seen, there are two additional
+ parameters you can use on the send() and send_n() method calls. The timeout
+ parameter limits the amount of time the system will attempt to send the data
+ to the peer. The flags parameter is passed directly to the OS send() system
+ call. See send(2) for the valid flags values.
*/
if (server.send_n ( buf, strlen(buf) ) == -1)
{
diff --git a/docs/tutorials/003/page01.html b/docs/tutorials/003/page01.html
index cbb0a47c8bc..075fc2888e4 100644
--- a/docs/tutorials/003/page01.html
+++ b/docs/tutorials/003/page01.html
@@ -96,6 +96,12 @@ int main (int argc, char *argv[])
doesn't send all of the data, it is up to you to program things such that it will
keep trying until all of the data is sent or simply give up. The send_n() function
already does the "keep tyring" option for us, so we use it.
+
+ Like the send() method used in the servers we've seen, there are two additional
+ parameters you can use on the send() and send_n() method calls. The timeout
+ parameter limits the amount of time the system will attempt to send the data
+ to the peer. The flags parameter is passed directly to the OS send() system
+ call. See send(2) for the valid flags values.
*/
if (server.send_n ( buf, strlen(buf) ) == -1)
{