How peek at tcp socket data w/o reading it

From: Kiniger, Karl (GE Healthcare)
Date: Mon Jan 31 2005 - 05:46:54 EST


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)

Any creative ideas welcome.

Karl
--
Karl Kiniger mailto:karl.kiniger@xxxxxxxxxx
GE Medical Systems Kretztechnik GmbH & Co OHG
Tiefenbach 15 Tel: (++43) 7682-3800-710
A-4871 Zipf Austria Fax: (++43) 7682-3800-47
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/