Clients

Each online client is represented with an entry in the clients table. The client may inspect his record at run-time and partially change its properties. The administrator sees all client records and has the right to adjust global and any other online client properties.

MODULE clients;

PATTERN clients.addUser(X_0:str, X_1:str):oid;
COMMENT "";

COMMAND clients.backendsum(X_0:str):str;
COMMENT "";

PATTERN clients.changePassword(X_0:str, X_1:str):void;
COMMENT "";

PATTERN clients.changeUsername(X_0:str, X_1:str):void;
COMMENT "";

PATTERN clients.checkPermission(X_0:str, X_1:str):void;
COMMENT "";

PATTERN clients.current_sessionid():int;
COMMENT "";

PATTERN clients.getId():int;
COMMENT "";

PATTERN clients.getInfo() (X_0:bat[:str], X_1:bat[:str]);
COMMENT "";

COMMAND clients.getLogins() (X_0:bat[:oid], X_1:bat[:str]);
COMMENT "";

PATTERN clients.getPasswordHash(X_0:str):str;
COMMENT "";

PATTERN clients.getScenario():str;
COMMENT "";

PATTERN clients.getUsername():str;
COMMENT "";

PATTERN clients.getUsers() (X_0:bat[:oid], X_1:bat[:str]);
COMMENT "";

PATTERN clients.getprofile() (X_0:str, X_1:int, X_2:int, X_3:int, X_4:int);
COMMENT "";

COMMAND clients.md5sum(X_0:str):str;
COMMENT "";

PATTERN clients.quit():void;
COMMENT "";

PATTERN clients.quit(X_0:int):void;
COMMENT "";

PATTERN clients.removeUser(X_0:str):void;
COMMENT "";

COMMAND clients.ripemd160sum(X_0:str):str;
COMMENT "";

PATTERN clients.setListing(X_0:int):int;
COMMENT "";

PATTERN clients.setPassword(X_0:str, X_1:str):void;
COMMENT "";

PATTERN clients.setScenario(X_0:str):str;
COMMENT "";

PATTERN clients.setmemorylimit(X_0:int):void;
COMMENT "";

PATTERN clients.setmemorylimit(X_0:int, X_1:int):void;
COMMENT "";

PATTERN clients.setoptimizer(X_0:int, X_1:str):void;
COMMENT "";

PATTERN clients.setoptimizer(X_0:str):void;
COMMENT "";

COMMAND clients.setprinttimeout(X_0:int):void;
COMMENT "";

PATTERN clients.setquerytimeout(X_0:bte, X_1:int):void;
COMMENT "";

PATTERN clients.setquerytimeout(X_0:int):void;
COMMENT "";

PATTERN clients.setquerytimeout(X_0:int, X_1:int):void;
COMMENT "";

PATTERN clients.setquerytimeout(X_0:sht, X_1:int):void;
COMMENT "";

PATTERN clients.setsession(X_0:lng):void;
COMMENT "";

PATTERN clients.setsessiontimeout(X_0:bte, X_1:int):void;
COMMENT "";

PATTERN clients.setsessiontimeout(X_0:int):void;
COMMENT "";

PATTERN clients.setsessiontimeout(X_0:int, X_1:int):void;
COMMENT "";

PATTERN clients.setsessiontimeout(X_0:sht, X_1:int):void;
COMMENT "";

PATTERN clients.settimeout(X_0:lng):void;
COMMENT "";

PATTERN clients.settimeout(X_0:lng, X_1:lng):void;
COMMENT "";

PATTERN clients.setworkerlimit(X_0:int):void;
COMMENT "";

PATTERN clients.setworkerlimit(X_0:int, X_1:int):void;
COMMENT "";

COMMAND clients.sha1sum(X_0:str):str;
COMMENT "";

COMMAND clients.sha2sum(X_0:str, X_1:int):str;
COMMENT "";

PATTERN clients.shutdown(X_0:int):str;
COMMENT "";

PATTERN clients.shutdown(X_0:int, X_1:bit):str;
COMMENT "";

PATTERN clients.stop(X_0:int):void;
COMMENT "";

PATTERN clients.stopsession(X_0:bte):void;
COMMENT "";

PATTERN clients.stopsession(X_0:int):void;
COMMENT "";

PATTERN clients.stopsession(X_0:sht):void;
COMMENT "";

PATTERN clients.suspend(X_0:int):void;
COMMENT "";

PATTERN clients.wakeup(X_0:int):void;
COMMENT "";