Logo Search packages:      
Sourcecode: g15daemon version File versions

def g15daemon::g15screen::__init__ (   self,
  screentype,
  host = 'localhost',
  port = 15550 
)

screentype uses these variables:
  SCREEN_PIXEL, SCREEN_TEXT and SCREEN_WBMP
host:
  g15daemon listening host
port:
  g15daemon listening port

Definition at line 66 of file g15daemon.py.

00066                                                              :
        """screentype uses these variables:
  SCREEN_PIXEL, SCREEN_TEXT and SCREEN_WBMP
host:
  g15daemon listening host
port:
  g15daemon listening port
"""
        if screentype == SCREEN_PIXEL:
            self.init_string="GBUF"
        elif screentype == SCREEN_TEXT:
            self.init_string="TBUF"
        elif screentype == SCREEN_WBMP:
            self.init_string="WBUF"
        self.remote_host=host
        self.remote_port=port
        self.socket=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        self.socket.connect((self.remote_host, self.remote_port))
        if self.socket.recv(16) != "G15 daemon HELLO":
            raise Exception("Communication error with server")
        self.socket.send(self.init_string)
        self.clear()

    def __del__(self):


Generated by  Doxygen 1.6.0   Back to index