Some socket program examples in C