NetworkBaseReceiveRedisCommandString 方法 |
接收一行基于redis协议的字符串的信息,需要指定固定的长度
Receive a line of information based on the redis protocol string, you need to specify a fixed length
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected OperateResult<byte[]> ReceiveRedisCommandString(
Socket socket,
int length
)
Protected Function ReceiveRedisCommandString (
socket As Socket,
length As Integer
) As OperateResult(Of Byte())
protected:
OperateResult<array<unsigned char>^>^ ReceiveRedisCommandString(
Socket^ socket,
int length
)
member ReceiveRedisCommandString :
socket : Socket *
length : int -> OperateResult<byte[]>
参数
- socket
- 类型:System.Net.SocketsSocket
网络套接字 - length
- 类型:SystemInt32
字符串的长度
返回值
类型:
OperateResultByte带有结果对象的数据信息
参见