Sometimes it is desirable to ignore all incoming data while still maintaining the connection opened. The sock.sinkdata property allows you to do just that.
Set the sock.sinkdata to 1- YES, and all incoming data will be automatically discarded. This means that the on_sock_data_arrival event will not be generated, reading sock.rxlen will always be returning zero, and so on. No data will be reaching its destination even in case of buffer redirection. Inband commands, however, will still be extracted from the incoming data stream and processed. Sock.connectiontout and sock.toutcounter will work correctly as well.