From af3955f516a27ce4a5f812aa3fa22033213dbb4a Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sat, 9 Apr 2016 10:18:13 +0530 Subject: [PATCH 1/6] docs: added documentation for socket.destroyed fixes: #5898 --- doc/api/net.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/net.markdown b/doc/api/net.markdown index 10129c13b8944f..c17ae580a2c6e8 100644 --- a/doc/api/net.markdown +++ b/doc/api/net.markdown @@ -359,6 +359,10 @@ The amount of received bytes. The amount of bytes sent. +### socket.destroyed + +A `boolean` value that depicts if the connection is destroyed or not. + ### socket.connect(options[, connectListener]) Opens the connection for a given socket. From 70c678c530400453342fdf0e93c0dc18cafca684 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Fri, 22 Apr 2016 16:51:34 +0530 Subject: [PATCH 2/6] fixup! docs: added documentation for socket.destroyed --- doc/api/net.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index 18d094d122078f..5eebc7e39a8222 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -361,7 +361,7 @@ The amount of bytes sent. ### socket.destroyed -A `boolean` value that depicts if the connection is destroyed or not. +A `boolean` value that indicates if the connection is destroyed or not. Once a connection is destroyed no data can further be transferred using it. ### socket.connect(options[, connectListener]) From 9154c976dd65e35bfaf647960f2308b462d2c691 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Thu, 16 Jun 2016 19:45:33 +0530 Subject: [PATCH 3/6] fixup! docs: added documentation for socket.destroyed --- doc/api/net.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index 5eebc7e39a8222..a1a94ae0092ad2 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -361,7 +361,8 @@ The amount of bytes sent. ### socket.destroyed -A `boolean` value that indicates if the connection is destroyed or not. Once a connection is destroyed no data can further be transferred using it. +A `boolean` value that indicates if the connection is destroyed or not. +Once a connection is destroyed no data can further be transferred using it. ### socket.connect(options[, connectListener]) From deaaf25279a962fc4991c36fb03d53de22e2545b Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Fri, 17 Jun 2016 13:24:28 +0530 Subject: [PATCH 4/6] fixup! docs: added documentation for socket.destroyed --- doc/api/net.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index a1a94ae0092ad2..68bbdc22ba48e0 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -361,7 +361,7 @@ The amount of bytes sent. ### socket.destroyed -A `boolean` value that indicates if the connection is destroyed or not. +A boolean value that indicates if the connection is destroyed or not. Once a connection is destroyed no data can further be transferred using it. ### socket.connect(options[, connectListener]) From 04cdc53a82d2d1c021ec4f8e24c083c896ee3f12 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Sat, 18 Jun 2016 10:00:18 +0530 Subject: [PATCH 5/6] fixup! docs: added documentation for socket.destroyed --- doc/api/net.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/net.md b/doc/api/net.md index 68bbdc22ba48e0..c4c6e7fe31ae4f 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -362,7 +362,7 @@ The amount of bytes sent. ### socket.destroyed A boolean value that indicates if the connection is destroyed or not. -Once a connection is destroyed no data can further be transferred using it. +Once a connection is destroyed no further data can be transferred using it. ### socket.connect(options[, connectListener]) From 2230d969e4dba0d6cc88469546109106cc0bf580 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Tue, 21 Jun 2016 01:32:40 +0530 Subject: [PATCH 6/6] fixup! docs: added documentation for socket.destroyed --- doc/api/net.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/net.md b/doc/api/net.md index c4c6e7fe31ae4f..48c59aa97e1fdb 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -359,11 +359,6 @@ The amount of received bytes. The amount of bytes sent. -### socket.destroyed - -A boolean value that indicates if the connection is destroyed or not. -Once a connection is destroyed no further data can be transferred using it. - ### socket.connect(options[, connectListener]) Opens the connection for a given socket. @@ -410,6 +405,11 @@ with options either as either `{port: port, host: host}` or `{path: path}`. Ensures that no more I/O activity happens on this socket. Only necessary in case of errors (parse error or so). +### socket.destroyed + +A boolean value that indicates if the connection is destroyed or not. +Once a connection is destroyed no further data can be transferred using it. + ### socket.end([data][, encoding]) Half-closes the socket. i.e., it sends a FIN packet. It is possible the