Socket Programming codes in C/C++