Add socket::writeData().