'generated source for method eConnect_0'

@synchronized(mlock)
@eConnect.register(object, Socket, int)
def eConnect_0(self, socket, clientId):

    self.m_dos = DataOutputStream(socket.getOutputStream())
    self.send(self.CLIENT_VERSION)
    self.m_reader = self.createReader(self, DataInputStream(socket.getInputStream()))
    self.m_serverVersion = self.m_reader.readInt()
    print ('Server    Version:    %d' % self.m_serverVersion)
    if (self.m_serverVersion >= 20):
        self.m_TwsTime = self.m_reader.readStr()
        print ('TWS    Time    at    connection:' + self.m_TwsTime)
    if (self.m_serverVersion < self.SERVER_VERSION):
        self.eDisconnect()
        self.m_anyWrapper.error(EClientErrors.NO_VALID_ID, EClientErrors.UPDATE_TWS.code(), EClientErrors.UPDATE_TWS.msg())
        return
    if (self.m_serverVersion >= 3):
        self.send(clientId)
    self.m_reader.start()
    self.m_connected = True
