reading exact number of bytes from the socket

Started by Sleeper, June 24, 2007, 11:18:59 AM

Previous topic - Next topic

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?