C++ attemption to implement FTP protocol (academic goal)