Unix network programing demo code