Package tacval :: Package runs :: Module run_server_client
[hide private]
[frames] | no frames]

Module run_server_client

source code

Classes [hide private]
  RunClient
Functions [hide private]
 
start_run_server(manager)
Server using the socket and thread modules
source code
 
stop_run_server() source code
 
listener(manager, server)
spawns a new handler thread
source code
 
handler(manager, sock, addr)
send a command to the run manager
source code
Variables [hide private]
  bufsize = 1024

Imports: socket, AF_INET, SOCK_STREAM, start_new_thread


Function Details [hide private]

start_run_server(manager)

source code 

Server using the socket and thread modules

Parameters:

listener(manager, server)

source code 

spawns a new handler thread

Parameters:
  • manager (RunManager) - run manager
  • server (socket) - a socket server

handler(manager, sock, addr)

source code 

send a command to the run manager

Parameters:
  • manager (RunManager) - run manager
  • sock (socket) - python socket
  • addr (int) - socket address