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

Thanks very much,

thats exactly what I needed.

Karl

On Mon, Jan 31, 2005 at 12:16:16PM +0100, Martin Zwickel wrote:
> 
>    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 <[1]http://www.technotrend.de>
>    )
> 
> References
> 
>    1. http://www.technotrend.de/

-- 
Karl Kiniger   mailto:karl.kiniger@med.ge.com
GE Medical Systems Kretztechnik GmbH & Co OHG
Tiefenbach 15       Tel: (++43) 7682-3800-710
A-4871 Zipf Austria Fax: (++43) 7682-3800-47

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

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

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=20050131113633.GA4184@wszip-kinigka.euro.med.ge.com \
    --to=karl.kiniger@med.ge.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.zwickel@technotrend.de \
    /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

all inboxes | Powered by JetHome®