AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Data Structures | Macros | Functions
host_gl.h File Reference

OpenGL proxy management. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  conn_duo
 Data structure to hold the two connections. More...
 

Macros

#define MAIN_PORT   25000
 Port used for initial communication. More...
 
#define OPENGL_DATA_PORT   22468
 Port used for OpenGL marshalling transfer. More...
 
#define BUFF_SIZE   (4 * 1024 * 1024)
 Max size of opengl reads. More...
 
#define OPENGL_START_COMMAND   1001
 Command sent to initiate the remote graphics exchange. More...
 
#define OPENGL_PING   1002
 Command sent by the VM to check if we’re still alive. More...
 
#define OPENGL_PONG   1003
 Reply to make tell the VM we’re still alive. More...
 

Functions

int manage_socket_gl (void *arg)
 Manage the remote OpenGL to the VM. More...
 

Detailed Description

OpenGL proxy management.

Definition in file host_gl.h.

Macro Definition Documentation

#define BUFF_SIZE   (4 * 1024 * 1024)

Max size of opengl reads.

Definition at line 23 of file host_gl.h.

#define MAIN_PORT   25000

Port used for initial communication.

Definition at line 9 of file host_gl.h.

#define OPENGL_DATA_PORT   22468

Port used for OpenGL marshalling transfer.

Definition at line 11 of file host_gl.h.

#define OPENGL_PING   1002

Command sent by the VM to check if we’re still alive.

Definition at line 28 of file host_gl.h.

#define OPENGL_PONG   1003

Reply to make tell the VM we’re still alive.

Definition at line 30 of file host_gl.h.

#define OPENGL_START_COMMAND   1001

Command sent to initiate the remote graphics exchange.

Definition at line 26 of file host_gl.h.

Function Documentation

int manage_socket_gl ( void *  arg)

Manage the remote OpenGL to the VM.

Parameters
argVirtual Machine IP (char*)

It first contacts the VM on port MAIN_PORT to establish a connection to make sure everything is ready on the VM side, then loops using the remote OpenGL protocol from AOSP on the DATA_PORT, with proxies on both ends in order to listen() on the VM side and not on the Player side.

Definition at line 128 of file host_gl.c.

Here is the call graph for this function:

Here is the caller graph for this function: