Solvline Eddy DK Ver 2.20 User Manual

Page 48

Advertising
background image

Chapter 6. Library

SB_GetSharedMemory

Function

Reads pointer of registered shared memory.

Format

void *SB_GetSharedMemory (int Key_ID, int Buffer_Size);

Parameter Key_ID

Buffer_Size

ID of registered shared menory

Size of shared memory used

Returns

*buffer_address

Memory address of shared memory

Returns -1 upon failure.

Notice

Portview is Windows application developed by SystemBase which can
remotely monitor Eddy’s operating condition. In contrast, SNMP server,
which provides basically same function as Portview, is industry’s standard
monitoring protocol S/W developed by 3Com, Cysco, etc. and sold in
hundreds of thousands of U.S. dollars.

To be compatible with both of the applications, each application in Eddy uses
shared memory to store information and send the information to Portview and
SNMP.

Note that PortView and SNMP Agent has to be set in the environment
configuration.

SB_SetSharedMemory

Function

Requests shared memory to be used and read memory pointer.

Format

void *SB_SetSharedMemory (int Key_ID, int Buffer_Size);

Parameter Key_ID

Buffer_Size

ID of shared memory to be registered

Size of shared memory to be used

Returns

*buffer_address

Memory address of shared memory

Returns -1 upon failure.

Notice

In Eddy this function is used for PortView and SNMP agent.

User can use this function to access shared memory for other purpose.

SB_SetReadyLed

Function

Contols Ready LED.

Format

void *SB_SetReadyLed (int OnOff);

Parameter

OnOff

0: Turn off Ready LED.

1: Turn on Ready LED.

6-5

Advertising