def setUp(self, logFile='log/socketManagerAm.log'): self.logger = Logger(logFile, 'DEBUG', 'Sub') self.logger = self.logger.getLogger() self.socketManager = socketManagerAm(self.logger, type='slave', port=10000, remoteHost=None, timeout=None, flow=self.flow)
def establishConnection(self): __doc__ = gateway.gateway.establishConnection.__doc__ + \ """ establish an AM socket connection. """ self.logger.debug("Instantiation of socketManagerAm") self.unSocketManagerAm = \ socketManagerAm.socketManagerAm(self.logger, type='slave', port=self.flow.port, remoteHost=None, timeout=None, flow=self.flow)
def establishConnection(self): # Instanciation du socketManagerAm self.logger.debug("Instanciation du socketManagerAm") self.unSocketManagerAm = \ socketManagerAm.socketManagerAm( self.logger,type='master', \ port=self.client.port,\ remoteHost=self.client.host, timeout=self.client.timeout, flow=self.client)
def setUp(self,logFile='log/socketManagerAm.log'): self.logger = Logger(logFile, 'DEBUG', 'Sub') self.logger = self.logger.getLogger() self.socketManager = socketManagerAm(self.logger, type='slave', port=10000, remoteHost=None, timeout=None, flow=self.flow)