On Mon, 31 Jan 2005 11:45:32 +0100
"Kiniger, Karl (GE Healthcare)" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
Research & Development

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

Attachment: pgpwpZROlyVoF.pgp
Description: PGP signature

Reply via email to