private static extern int PassThruStartPeriodicMsg(uint ChannelID, ref PassthruMsg pMsg, ref uint pMsgID, uint TimeInterval);
private static extern int PassThruWriteMsgs(uint ChannelID, ref PassthruMsg pMsg, ref uint pNumMsgs, uint Timeout);
private static extern int PassThruStartMsgFilter(uint ChannelID, uint FilterType, ref PassthruMsg pMaskMsg, ref PassthruMsg pPatternMsg, ref PassthruMsg pFlowControlMsg, ref uint pMsgID);
/// <summary> /// 持续传送讯息 /// </summary> /// <param name="ChannelID"></param> /// <param name="pMsg"></param> /// <param name="pMsgID"></param> /// <param name="TimeInterval"></param> /// <returns></returns> public static int MonStartPeriodicMsg(uint ChannelID, ref PassthruMsg pMsg, ref uint pMsgID, uint TimeInterval) { return(PassThruStartPeriodicMsg(ChannelID, ref pMsg, ref pMsgID, TimeInterval)); }
/// <summary> /// 发送网络消息 /// </summary> /// <param name="ChannelID"></param> /// <param name="pMsg"></param> /// <param name="pNumMsgs">指示该通道_msg数组仅包含几条消息</param> /// <param name="Timeout"></param> /// <returns></returns> public static int MonWriteMsgs(uint ChannelID, ref PassthruMsg pMsg, ref uint pNumMsgs, uint Timeout) { return(PassThruWriteMsgs(ChannelID, ref pMsg, ref pNumMsgs, Timeout)); }
/// <summary> /// 应用网路讯息过滤器 /// </summary> /// <param name="ChannelID"></param> /// <param name="FilterType"></param> /// <param name="pMaskMsg"></param> /// <param name="pPatternMsg"></param> /// <param name="pFlowControlMsg"></param> /// <param name="pMsgID"></param> /// <returns></returns> public static int MonStartMsgFilter(uint ChannelID, uint FilterType, ref PassthruMsg pMaskMsg, ref PassthruMsg pPatternMsg, ref PassthruMsg pFlowControlMsg, ref uint pMsgID) { return(PassThruStartMsgFilter(ChannelID, FilterType, ref pMaskMsg, ref pPatternMsg, ref pFlowControlMsg, ref pMsgID)); }