added setsockopt() to open_clientfd() to reuse socket
editted setsockopt() parameters in open_clientfd()