NetworkUdpBaseReceiveFromUdpSocket 方法 |
从UDP接收相关的数据信息,允许子类重写实现一些更加特殊的功能验证。
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected virtual byte[] ReceiveFromUdpSocket(
Socket socket,
int timeOut,
byte[] send
)
Protected Overridable Function ReceiveFromUdpSocket (
socket As Socket,
timeOut As Integer,
send As Byte()
) As Byte()
protected:
virtual array<unsigned char>^ ReceiveFromUdpSocket(
Socket^ socket,
int timeOut,
array<unsigned char>^ send
)
abstract ReceiveFromUdpSocket :
socket : Socket *
timeOut : int *
send : byte[] -> byte[]
override ReceiveFromUdpSocket :
socket : Socket *
timeOut : int *
send : byte[] -> byte[]
参数
- socket
- 类型:System.Net.SocketsSocket
网络套接字 - timeOut
- 类型:SystemInt32
超时时间 - send
- 类型:SystemByte
发送的报文信息
返回值
类型:
Byte返回接收到的报文
参见