Networking using C program