network lab code c/c++