add receiveBytes:count: method for receiving an exact number of bytes and associated unit test. add method docs for both receiveBytes methods. updated the test helper thread to be more robust and reusable.
fixed warnings caused by type changes
changing types again so that public api is less confusing. time_t and size_t are both defined as longs.