a basic socket about ruby