Socket write