Page 1 of 1

reading exact number of bytes from the socket

Posted: Sun Jun 24, 2007 6:18 pm
by Sleeper
hi
i am trying to work with sockets for the first time.
i need a function that reads exactly n bytes from the socket (and blocks until they are available)
how can i do this?