All of lore.kernel.org
 help / color / mirror / Atom feed
From: KV Pavuram <kvpavuram@yahoo.co.in>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Socket vs File descriptor
Date: Wed, 23 Sep 2009 23:51:19 -0700 (PDT)	[thread overview]
Message-ID: <179773.9311.qm@web8404.mail.in.yahoo.com> (raw)

Hi,

Is there any  ioctl call to determine if a given descriptor is a file descriptor or a socket descriptor.

Similarly, is there a way to find out a socket descriptor type ie.e if it is SOCK_STREAM, or SOCK_DGRAM type.

Thanks
Pav


      See the Web&#39;s breaking stories, chosen by people like you. Check out Yahoo! Buzz. http://in.buzz.yahoo.com/

             reply	other threads:[~2009-09-24  6:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-24  6:51 KV Pavuram [this message]
2009-09-24  7:10 ` Socket vs File descriptor Willy Tarreau
2009-09-24  7:54 ` "YOSHIFUJI Hideaki (吉藤 英明)"

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=179773.9311.qm@web8404.mail.in.yahoo.com \
    --to=kvpavuram@yahoo.co.in \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.