Exemple #1
0
def GetTasks(name, token, group):
	con = Connection(Get_Server_Ip(), 8080)
	con.Send(f'R/{name}/{group}/{token}')
	code = con.WaitUntilRecv(format_incoming=RemoveNullTerminator)
	error = TokenErrorHandler(code)
	if error:
		return
	con.Send('Ready')
	updated_items = con.RecvList('GO', 'END')
	con.Close()
	return updated_items
Exemple #2
0
def GetGroups(name, token):
	con = Connection(Get_Server_Ip(), 8080)
	con.Send(f'G/{name}/NULL/{token}')
	code = con.WaitUntilRecv(format_incoming=RemoveNullTerminator)
	error = TokenErrorHandler(code)
	if error:
		return
	con.Send('Ready')
	groups = con.RecvList('GO', 'END')
	con.Close()
	return groups