auto flush (and send all ia tcpSocket)