Server Side Functions
Functions
-
int lpHandleClientReq(PLPContext ctx)
This Function will handle all client side requests (e.g. Frames data, Cursor data)
- Parameters:
ctx – Context containing the TRFContext for client connections
-
void *lpHandleCursorPos(void *arg)
Get the current cursor position and update the client side.
- Parameters:
arg – PTRFContext containing connection details
Functions
-
int lpInitLgmpClient(PLPContext ctx)
- Parameters:
ctx – Context to use
- Returns:
0 on success, negative error code on error
-
int lpClientInitSession(PLPContext ctx)
Inittialize LGMP Client Session.
- Parameters:
ctx – Context to use
- Returns:
0 on success, negative error code on error
-
int lpGetFrame(PLPContext ctx, KVMFRFrame **out, FrameBuffer **fb)
Get Frame from shared memory.
- Parameters:
ctx – Context to use
out – Frame retrieved from LookingGlass
- Returns:
0 on success, negative error code on error
-
int lpgetCursor(PLPContext ctx, KVMFRCursor **out, uint32_t *size, uint32_t *flags)
Get the Cursor object.
- Parameters:
ctx – Context to use
out – Cursor from Looking Glass Host if there is no change in cursor postion it out will be set to NULL
- Returns:
0 on success, negative error code on failure