parameters: (self, ip=None, port=None)
docstring: Initialize connection to XBMC
          ip -- IP Address of XBMC
          port -- port that the event server on XBMC is listening on
docstring_summary: Initialize connection to XBMC
          ip -- IP Address of XBMC
          port -- port that the event server on XBMC is listening on
docstring_tokens: Initialize connection to XBMC ip -- IP Address of XBMC port -- port that the event server on XBMC is listening on
function: def connect(self, ip=None, port=None):
          """Initialize connection to XBMC
          ip -- IP Address of XBMC
          port -- port that the event server on XBMC is listening on
          """
          if ip:
              self.ip = ip
          if port:
              self.port = int(port)
          self.addr = (self.ip, self.port)
          packet = PacketHELO(self.name, self.icon_type, self.icon_file)
          packet.send(self.sock, self.addr, self.uid)
function_tokens: def connect ( self , ip = None , port = None ) : if ip : self . ip = ip if port : self . port = int ( port ) self . addr = ( self . ip , self . port ) packet = PacketHELO ( self . name , self . icon_type , self . icon_file ) packet . send ( self . sock , self . addr , self . uid )