Re: How peek at tcp socket data w/o reading it
From: Martin Zwickel (martin.zwickel_at_technotrend.de)
Date: 01/31/05
- Previous message: Jens Axboe: "Re: 2.6.11-rc[1,2]-mmX scsi cdrom problem, 2.6.10-mm2 ok"
- In reply to: Kiniger, Karl (GE Healthcare): "How peek at tcp socket data w/o reading it"
- Next in thread: Kiniger: "Re: How peek at tcp socket data w/o reading it"
- Reply: Kiniger: "Re: How peek at tcp socket data w/o reading it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 31 Jan 2005 12:16:16 +0100 To: "Kiniger, Karl (GE Healthcare)" <karl.kiniger@med.ge.com>
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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- application/pgp-signature attachment: stored
- Previous message: Jens Axboe: "Re: 2.6.11-rc[1,2]-mmX scsi cdrom problem, 2.6.10-mm2 ok"
- In reply to: Kiniger, Karl (GE Healthcare): "How peek at tcp socket data w/o reading it"
- Next in thread: Kiniger: "Re: How peek at tcp socket data w/o reading it"
- Reply: Kiniger: "Re: How peek at tcp socket data w/o reading it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|