erbrowser/src/ipcServer.h File Reference

browser - browser IPC communication More...

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

Go to the source code of this file.

Defines

#define SERVER_BUFFER_SIZE   (1024)

Functions

gboolean ipc_InstallIpcServer (Ereader *browser)


Detailed Description

browser - browser IPC communication

<File description>="">

Definition in file ipcServer.h.


Define Documentation

#define SERVER_BUFFER_SIZE   (1024)

Definition at line 33 of file ipcServer.h.


Function Documentation

gboolean ipc_InstallIpcServer ( Ereader browser  ) 

Start listening to IPC requests

Parameters:
Ereader datastructure containing the "mozembed" reference
Returns:
-

Definition at line 51 of file ipcServer.cpp.

00052 {
00053     int     returnValue;
00054     int     channel;
00055     int     fd = -1;
00056 
00057     BR_IPCPRINTF("entry");
00058 
00059     returnValue = erIpcOpenServerChannel(ER_XHTML_VIEWER_CHANNEL, &theServerChannel);
00060 
00061     if (returnValue != (-1))
00062     {
00063         fd = erIpcGetServerFd(theServerChannel);
00064 
00065         BR_IPCPRINTF("erIpcGetServerFd returned %d\n", fd);
00066 
00067         // gtk specific mechanism to monitor input file descriptor.
00068         returnValue = gdk_input_add(fd, GDK_INPUT_READ, ipcMessageReceived, (gpointer) browser);
00069 
00070         BR_IPCPRINTF("gdk_input_add returned %d", returnValue);
00071         return TRUE;
00072     }
00073     else
00074     {
00075         BR_ERRORPRINTF("Could not open server channel");
00076         return FALSE;
00077     }
00078 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:14:51 2008 by  doxygen 1.5.6