simple network programs using c