PipeUdpNetReceiveMessage 方法 (INetMessage, Byte, Byte, ActionByte, Boolean) |
包含了一个复杂的逻辑,从管道里根据当前的消息格式定义,接收报文信息,这个报文可能是来自服务器主动推送的。具体可以通过参数 useActivePush 来特殊控制。
Contains a complex logic from the pipeline, according to the current message format definition, to receive message information,
this message may be actively pushed from the server. The parameter useActivePush can be used for special control.
命名空间:
HslCommunication.Core.Pipe
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<byte[]> ReceiveMessage(
INetMessage netMessage,
byte[] sendValue,
byte[] alreadyReceive,
Action<byte[]> logMessage = null,
bool closeOnException = true
)
Public Function ReceiveMessage (
netMessage As INetMessage,
sendValue As Byte(),
alreadyReceive As Byte(),
Optional logMessage As Action(Of Byte()) = Nothing,
Optional closeOnException As Boolean = true
) As OperateResult(Of Byte())
public:
OperateResult<array<unsigned char>^>^ ReceiveMessage(
INetMessage^ netMessage,
array<unsigned char>^ sendValue,
array<unsigned char>^ alreadyReceive,
Action<array<unsigned char>^>^ logMessage = nullptr,
bool closeOnException = true
)
member ReceiveMessage :
netMessage : INetMessage *
sendValue : byte[] *
alreadyReceive : byte[] *
?logMessage : Action<byte[]> *
?closeOnException : bool
(* Defaults:
let _logMessage = defaultArg logMessage null
let _closeOnException = defaultArg closeOnException true
*)
-> OperateResult<byte[]>
参数
- netMessage
- 类型:HslCommunication.Core.IMessageINetMessage
消息对象 - sendValue
- 类型:SystemByte
发送的数据,大多数的情况,都可以为空 - alreadyReceive
- 类型:SystemByte
已经接收的数据信息 - logMessage (Optional)
- 类型:SystemActionByte
用于消息记录的日志信息 - closeOnException (Optional)
- 类型:SystemBoolean
[缺少 "M:HslCommunication.Core.Pipe.PipeUdpNet.ReceiveMessage(HslCommunication.Core.IMessage.INetMessage,System.Byte[],System.Byte[],System.Action{System.Byte[]},System.Boolean)" 的 <param name="closeOnException"/> 文档]
返回值
类型:
OperateResultByte是否
参见