Variables
lem_status_server Namespace Reference

Variables

int PORT = 12350
 Parameters. More...
 
int BUFLEN = 1024
 
string HEARTBEAT_FILE = "/nusoft/app/web/htdoc/nova/lem/lem_client_mon_status_heartbeat.json"
 
 server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
 Main. More...
 
bool docontinue = True
 
 message = eval(message)
 
 address
 
 rtime = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())
 
 rmach = socket.gethostbyaddr(address[0])[0]
 
dictionary heartbeat = {"time":rtime,"machine":rmach}
 

Variable Documentation

lem_status_server.address

Definition at line 14 of file lem_status_server.py.

int lem_status_server.BUFLEN = 1024

Definition at line 7 of file lem_status_server.py.

bool lem_status_server.docontinue = True

Definition at line 12 of file lem_status_server.py.

dictionary lem_status_server.heartbeat = {"time":rtime,"machine":rmach}

Definition at line 25 of file lem_status_server.py.

string lem_status_server.HEARTBEAT_FILE = "/nusoft/app/web/htdoc/nova/lem/lem_client_mon_status_heartbeat.json"

Definition at line 8 of file lem_status_server.py.

lem_status_server.message = eval(message)

Definition at line 14 of file lem_status_server.py.

int lem_status_server.PORT = 12350

Parameters.

Definition at line 6 of file lem_status_server.py.

lem_status_server.rmach = socket.gethostbyaddr(address[0])[0]

Definition at line 16 of file lem_status_server.py.

lem_status_server.rtime = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime())

Definition at line 15 of file lem_status_server.py.

lem_status_server.server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)

Main.

Definition at line 10 of file lem_status_server.py.