Fix Issue 4, ...

Fix commits in functions.h
Fix Issue 4: Socket::Read return false when read return 0