optimize: saved one cosocket receive() call in the get() and gets() methods.