Prg_Ipc_Packet_Send()
Abstract
Sends data to another running program.
Syntax
Prg_Ipc_Packet_Send (port_handle, buf_ptr, buf_len)
| Argument | Type | Description |
|---|---|---|
port_handle |
PrgT_Ipc_Port_Handle |
PRG Ipc port on which to send the data |
buf_ptr |
void* |
data buffer where the data to be sent resides |
buf_len |
int |
length of the data to be sent (in bytes) |
Return Type
PrgT_Compcode
Return PrgC_Compcode_Success on success, PrgC_Compcode_Failure if failed
Header
prg_ipc.h
Details
Send data through IPC to another running program. The two programs must have established two-way communication through Prg_Ipc_Port_Create_Listen() and Prg_Ipc_Port_Connect_To(). Sending data through this function will cause the receiving end's IPC port handler to be called, with a port_status of PrgC_Ipc_Port_Status_Incoming_Data.