Add writev to socket management.