Rename and handling write on socket using stream instead of specific method