This structure contains callbacks to application callback functions used by the library to open or close a socket, and to send data to or receive data from a socket. The startup function IMR_InitEx passes these callbacks to the library.

typedef struct _SocketsCallbacks{

Open open_connection;

Close close_connection;

Receive receive_data;

Send send_data;

} SocketsCallbacks;



Value or Description


A function that sends the connID used to identify a specific connection. connID is the handle used in subsequent calls for this connection, and by IMR_ReadyReadSock when a socket has data to read.


A function that closes a socket.


A function that reads data from a socket.

The library calls this function only after an application calls IMR_ReadyReadSock.


A function that sends the data to the desired socket.

Copyright © 2006-2022, Intel Corporation. All rights reserved.