Peach :: Publishers :: tcp :: TcpListenerLaunchGui :: Class TcpListenerLaunchGui
[hide private]

Class TcpListenerLaunchGui

source code


Does TcpListener goodness and also can laun a program. After some defined amount of time we will try and close the GUI application by sending WM_CLOSE than kill it.

Instance Methods [hide private]
 
__init__(self, host, port, windowname, timeout=0.25) source code
 
stop(self) source code
 
call(self, method, args)
Launch program to consume file
source code
 
closeApp(self, title)
Close Application by window title
source code

Inherited from TcpListener: accept, close, connect, start

Inherited from Tcp: receive, send

Inherited from Tcp (private): _receiveByAvailable, _receiveBySize

Static Methods [hide private]
 
enumCallback(hwnd, windowName)
Will get called by win32gui.EnumWindows, once for each top level application window.
source code
Method Details [hide private]

__init__(self, host, port, windowname, timeout=0.25)
(Constructor)

source code 
Parameters:
  • host - Remote host
  • port - Remote port
  • timeout - How long to wait for reponse
Overrides: Tcp.__init__
(inherited documentation)

stop(self)

source code 
Overrides: Tcp.stop

call(self, method, args)

source code 

Launch program to consume file

Parameters:
  • method (string) - Command to execute
  • args (array of objects) - Arguments to pass