def __init__(self, shuttle, profile, host, port):
        self.profile = profile
        self.host = host
        self.port = port

        self.sendKnock(profile, host, port)
        EndpointConnection.__init__(self, shuttle, host, port)
    def __init__(self, shuttle, profile, host, port):
        self.profile = profile
        self.host    = host
        self.port    = port

        self.sendKnock(profile, host, port)
        EndpointConnection.__init__(self, shuttle, host, port)
Ejemplo n.º 3
0
    def setupEndpoint(self):
        if (self.addressType == 0x01):
            profile = self.profiles.getProfileForIP(self.address)
        else:
            profile = self.profiles.getProfileForName(self.address)

        if profile == None:
            self.endpoint = EndpointConnection(self, self.address, self.port)
        else:
            self.endpoint = KnockingEndpointConnection(self, profile,
                                                       self.address, self.port)
 def reconnect(self):
     self.sendKnock(self.profile, self.host, self.port)
     EndpointConnection.reconnect(self)
 def reconnect(self):
     self.sendKnock(self.profile, self.host, self.port)
     EndpointConnection.reconnect(self)