*
'rt' => (bool) CAN message send marked as Realtime
* 'msgtype' => (int) CAN message type. Use one of DI_CAN_MSGTYPE_* constants
* 'ttype' => (int) CAN transfer type. Use one of DI_CAN_TRANSFERTYPE_* constants
* 'dtype' => (int) CAN message datatype. Use one of DI_CAN_RAW_DTYPE_*, DI_CAN_NET_DTYPE_*
* or DI_RPC_TYPE_* constants
* 'ptype' => (int) CAN message payload type. Use one of DI_CAN_PTYPE_* constants
* 'dst_id' => (int) CAN destination node id. Use a 32-bit number or one of DI_CAN_NODEID_* constants
* 'msg' => (string) [optional] CAN message payload data (binary). Must be the type specified by ptype key.
*
*/
function di_can_send($fd, $msg)
{
die("This function should not be called this way");
}
/**
* Send a CAN message empty reply
*
* @param resource $fd
* @param array $req A CAN message request object used as a base for the empty reply.
*
* - 'canid' => (int) Raw CAN ID. Used to get the transaction id
* - 'msgtype' => (int) CAN message type. Use one of DI_CAN_MSGTYPE_* constants
* - 'ttype' => (int) CAN transfer type. Use one of DI_CAN_TRANSFERTYPE_* constants
* - 'dtype' => (int) CAN message datatype. Use one of DI_CAN_RAW_DTYPE_*, DI_CAN_NET_DTYPE_*
* or DI_RPC_TYPE_* constants
* - 'ptype' => (int) CAN message payload type. Use one of DI_CAN_PTYPE_* constants
* - 'dst_id' => (int) CAN destination node id. Use a 32-bit number or one of DI_CAN_NODEID_* constants
* - 'src_id' => (int) CAN source node id. Use a 32-bit number or one of DI_CAN_NODEID_* constants
* - 'msg' => (string) [optional] CAN message payload data (binary). Must be the type specified by ptype key.
*
*/
function di_can_send_empty_reply($fd, $req)
{
die("This function should not be called this way");
}
/**
* Send a CAN request message and return a reply or NULL on timeout
*
* @param resource $fd
* @param array $msg A CAN message object.
*
* - 'msgtype' => (int) CAN message type. Use one of DI_CAN_MSGTYPE_* constants
* - 'ttype' => (int) CAN transfer type. Use one of DI_CAN_TRANSFERTYPE_* constants
* - 'dtype' => (int) CAN message datatype. Use one of DI_CAN_RAW_DTYPE_*, DI_CAN_NET_DTYPE_*
* or DI_RPC_TYPE_* constants
* - 'ptype' => (int) CAN message payload type. Use one of DI_CAN_PTYPE_* constants
* - 'dst_id' => (int) CAN destination node id. Use a 32-bit number or one of DI_CAN_NODEID_* constants
* - 'msg' => (string) [optional] CAN message payload data (binary). Must be the type specified by ptype key.
*
* @param long $timeout_ms Reply timeout in milliseconds
*/
function di_can_reqrep($fd, $msg, $timeout_ms)
{
die("This function should not be called this way");
}
/**
* Send a CAN request message with reply retries and return a reply or NULL on timeout
*
* @param resource $fd
* @param array $msg A CAN message object.
*
* - 'msgtype' => (int) CAN message type. Use one of DI_CAN_MSGTYPE_* constants
* - 'ttype' => (int) CAN transfer type. Use one of DI_CAN_TRANSFERTYPE_* constants
* - 'dtype' => (int) CAN message datatype. Use one of DI_CAN_RAW_DTYPE_*, DI_CAN_NET_DTYPE_*
* or DI_RPC_TYPE_* constants
* - 'ptype' => (int) CAN message payload type. Use one of DI_CAN_PTYPE_* constants
* - 'dst_id' => (int) CAN destination node id. Use a 32-bit number or one of DI_CAN_NODEID_* constants
* - 'msg' => (string) [optional] CAN message payload data (binary). Must be the type specified by ptype key.
*
* @param long $timeout_ms Reply timeout in milliseconds
* @param long $retries Amount of retries
*/
function di_can_reqrep_with_retry($fd, $msg, $timeout_ms, $retries)
{
die("This function should not be called this way");
}
/**
* Queue a CAN message for periodic sending
* @param resource $fd
* @param array $msg A CAN message object
* @param integer $time Periodic time to send the message in milliseconds
* @return integer A token for di_can_send_dequeue
*/
function di_can_send_queue($fd, $msg, $time)
{
die("This function should not be called this way");
}
/**
* Dequeue a CAN message which is previously queued with di_can_send_queue
*/
function di_can_send_dequeue($fd, $token)
{
die("This function should not be called this way");
}