From: "Ranga Reddy M - CTD ,Chennai." <rangareddym@ctd.hcltech.com>
To: Glynn Clements <glynn.clements@virgin.net>,
"Lejanson C. Go" <lejanson@ntsp.nec.co.jp>
Cc: linux-c-programming <linux-c-programming@vger.kernel.org>
Subject: RE: question on socket connection
Date: Mon, 26 May 2003 12:26:23 +0530 [thread overview]
Message-ID: <EF836A380096D511AD9000B0D021B527013AD1D4@narmada.techmas.hcltech.com> (raw)
If the socket is non-blocking mode, I mean if MSG_DONTWAIT send/recv of
flag is set....
If , the other end is no proper socket closing is done (system crash or
power down).
Then how to find the socket connection....?????
-----Original Message-----
From: Glynn Clements [mailto:glynn.clements@virgin.net]
Sent: Monday, May 26, 2003 11:28 AM
To: Lejanson C. Go
Cc: linux-c-programming
Subject: Re: question on socket connection
Lejanson C. Go wrote:
> how do you check if the socket has been disconnected?
Try reading from it; if read/recv return zero bytes, it's closed.
--
Glynn Clements <glynn.clements@virgin.net>
-
To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2003-05-26 6:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-26 6:56 Ranga Reddy M - CTD ,Chennai. [this message]
2003-05-26 7:33 ` question on socket connection ronkhu
-- strict thread matches above, loose matches on Subject: below --
2003-05-26 8:44 Ranga Reddy M - CTD ,Chennai.
2003-05-26 10:05 ` John T. Williams
2003-05-26 8:02 Ranga Reddy M - CTD ,Chennai.
2003-05-26 8:27 ` Glynn Clements
2003-05-26 8:43 ` ronkhu
2003-05-26 2:03 Lejanson C. Go
2003-05-26 2:30 ` ronkhu
2003-05-26 5:57 ` Glynn Clements
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EF836A380096D511AD9000B0D021B527013AD1D4@narmada.techmas.hcltech.com \
--to=rangareddym@ctd.hcltech.com \
--cc=glynn.clements@virgin.net \
--cc=lejanson@ntsp.nec.co.jp \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).