|
![]() |
![]() |
version 2003
PA_SendDataToServer (pluginRef; dataRef; dataKind; data; dataSize)
Parameter | Type | Description | |
pluginRef | long | → | ID number of plug-in's server instance |
dataRef | long | → | ID number of data to be written |
dataKind | long | → | Type (4-byte OSType) of data to be written |
data | char * | → | Pointer to data to be written |
dataSize | long | → | Size of data to be written in bytes |
Description
Provided there is a running server instance of a 4D plug-in on the server machine, calling
PA_SendDataToServer
allows a 4D plug-in, from a client machine, to send data to the server instance of that 4D plug-in package.
Before the call:
The 4D plug-in passes in
pluginRef
the ID number of the plug-in's server instance. This number is the resource ID number of the 4BNX resource for this plug-in.
The 4D plug-in passes the type of data (4 byte OSType) and the data ID number the 4D plug-in is sending in
dataKind
and
dataRef
. These values can be whatever is required, using private conventions.
The 4D plug-in passes in
dataSize
the size in bytes of the data being sent.
The 4D plug-in passes in
data
a pointer to the data to be sent.
NOTE
: