Update myhttpd.cpp

Moved socket writing methods to new file.