All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Zwickel <martin.zwickel@technotrend.de>
To: "Kiniger, Karl (GE Healthcare)" <karl.kiniger@med.ge.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How peek at tcp socket data w/o reading it
Date: Mon, 31 Jan 2005 12:16:16 +0100	[thread overview]
Message-ID: <20050131121616.1d35c69a@phoebee> (raw)
In-Reply-To: <20050131104532.GA3208@wszip-kinigka.euro.med.ge.com>

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

On Mon, 31 Jan 2005 11:45:32 +0100
"Kiniger, Karl (GE Healthcare)" <karl.kiniger@med.ge.com> bubbled:

> Hi,
> 
> hack wanted:
> 
> is it possible to peek a few bytes from a tcp socket which is
> ready to read without actually reading the data? (or some
> means to push already read data back similar to ungetc)

ret = recv(fd, buf, len, MSG_PEEK);


-- 
MyExcuse:
telnet: Unable to connect to remote host: Connection refused

Martin Zwickel <martin.zwickel@technotrend.de>
Research & Development

TechnoTrend AG <http://www.technotrend.de>

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-01-31 11:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31 10:45 How peek at tcp socket data w/o reading it Kiniger, Karl (GE Healthcare)
2005-01-31 11:16 ` Martin Zwickel [this message]
2005-01-31 11:36   ` Kiniger

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=20050131121616.1d35c69a@phoebee \
    --to=martin.zwickel@technotrend.de \
    --cc=karl.kiniger@med.ge.com \
    --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.