NetSupportSocketSend 方法 (SslStream, Byte, Int32, Int32) |
发送消息给套接字,直到完成的时候返回,经过测试,本方法是线程安全的。
Send a message to the socket until it returns when completed. After testing, this method is thread-safe.
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult SocketSend(
SslStream ssl,
byte[] data,
int offset,
int size
)
Public Shared Function SocketSend (
ssl As SslStream,
data As Byte(),
offset As Integer,
size As Integer
) As OperateResult
public:
static OperateResult^ SocketSend(
SslStream^ ssl,
array<unsigned char>^ data,
int offset,
int size
)
static member SocketSend :
ssl : SslStream *
data : byte[] *
offset : int *
size : int -> OperateResult
参数
- ssl
- 类型:System.Net.SecuritySslStream
[缺少 "M:HslCommunication.Core.NetSupport.SocketSend(System.Net.Security.SslStream,System.Byte[],System.Int32,System.Int32)" 的 <param name="ssl"/> 文档]
- data
- 类型:SystemByte
字节数据 - offset
- 类型:SystemInt32
偏移的位置信息 - size
- 类型:SystemInt32
发送的数据总数
返回值
类型:
OperateResult发送是否成功的结果
参见