def METHOD_NAME(self, data):
    """
    Send data via TCP service.
    :param data: data
    :type data: str
    """
    try:
        self.socket.METHOD_NAME(data)
    except socket.error as serr:
        if (serr.errno == 10054) or (serr.errno == 10053):
            self._close_ignoring_exceptions()
            info = "{} during send msg '{}'".format(serr.errno, data)
            raise RemoteEndpointDisconnected('Socket error: ' + info)
        else:
            raise