Implemented ws_util_create_socket