multiple identical definitions of the read exactly method in socket backed