void run(Thread *thread, void *args) { TCPConnection *conn = static_cast<TCPConnection *>(args); conn->writeData(); }