reading exact number of bytes from the socket

For the Compleat Fan
Locked
Sleeper
Posts: 24
Joined: Fri Nov 24, 2006 2:24 pm

reading exact number of bytes from the socket

Post 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?

Locked