NetworkBaseSend 方法 (Socket, Byte) |
发送消息给套接字,直到完成的时候返回,经过测试,本方法是线程安全的。
Send a message to the socket until it returns when completed. After testing, this method is thread-safe.
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected OperateResult Send(
Socket socket,
byte[] data
)
Protected Function Send (
socket As Socket,
data As Byte()
) As OperateResult
protected:
OperateResult^ Send(
Socket^ socket,
array<unsigned char>^ data
)
member Send :
socket : Socket *
data : byte[] -> OperateResult
参数
- socket
- 类型:System.Net.SocketsSocket
网络套接字 - data
- 类型:SystemByte
字节数据
返回值
类型:
OperateResult发送是否成功的结果
参见