ucscsdk/ucsceventhandler.py
def _read_msg_length(self, msg):
        '''
        The first line of the resp msg contains the length of the xml resp
        being received. This method extracts and returns the lenth of the msg
        from the xml response.
        Note: readline() from socket buffer is not working reliably across
        all python versions
        '''
        msg_len = ""
        while True:
            b = msg.read(1)
            c = b.decode('utf-8')
            if c == '\n':
                msg_len += c
                break
            msg_len += c
        return int(msg_len)

        The first line of the resp msg contains the length of the xml resp
        being received. This method extracts and returns the lenth of the msg
        from the xml response.
        Note: readline() from socket buffer is not working reliably across
        all python versions
        
The first line of the resp msg contains the length of the xml resp
being received. This method extracts and returns the lenth of the msg
from the xml response.
Note: readline() from socket buffer is not working reliably across
all python versions
The first line of the resp msg contains the length of the xml resp being received . This method extracts and returns the lenth of the msg from the xml response . Note : readline () from socket buffer is not working reliably across all python versions
def _read_msg_length(self, msg):
        msg_len = ""
        while True:
            b = msg.read(1)
            c = b.decode('utf-8')
            if c == '\n':
                msg_len += c
                break
            msg_len += c
        return int(msg_len)
def _read_msg_length ( self , msg ) : msg_len = "" while True : b = msg . read ( 1 ) c = b . decode ( 'utf-8' ) if c == '\n' : msg_len += c break msg_len += c return int ( msg_len )
The first line of the resp msg contains the length of the xml resp
being received.
The first line of the resp msg contains the length of the xml resp being received .
'''
        The first line of the resp msg contains the length of the xml resp
        being received. This method extracts and returns the lenth of the msg
        from the xml response.
        Note: readline() from socket buffer is not working reliably across
        all python versions
        '''
self
msg