Revert "Changed recv to gets"

This reverts commit cda4530a801ef83efd98a253201d2eef879b032c.