Call this function after an event notification was sent that there was data available to read. It enables reading data from a selected connection.
Function Header
TransportResult KVMCustomTransport_Receive
(
void *pViewer,
void *pContext,
const char* buffer,
int length
);
Function Parameters
Field |
Input/Output |
Value or Description |
pViewer |
Input |
Pointer to the applicable VNC viewer instance. |
pContext |
Input |
Pointer to the parameters that describe the connection to a selected Intel AMT platform, in ConnectionData format. |
buffer |
Input |
Pointer to a buffer where the library copies the received data. |
length |
Input/Output |
Pointer to a location that contains the length, in bytes, of the data buffer. On return, it contains the length of the data copied to the buffer, that will be less than or equal to the length of the buffer. |
Function Return Status
Value |
Description |
TransportResultSuccess |
The command finished successfully. |
TransportResultFailure |
The command could not complete. |
TransportResultFailure |
There is no data to return. As the library works with unblocked sockets, waitng for data would block the connection. |
Copyright © 2006-2022, Intel Corporation. All rights reserved. |