NetworkBaseSendAccountAndCheckReceive 方法 |
[自校验] 直接发送字符串数组并确认对方接收完成数据,如果结果异常,则结束通讯
[Self-check] Send string array directly and confirm that the other party has received the completed data. If the result is abnormal, the communication ends.
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 protected OperateResult SendAccountAndCheckReceive(
Socket socket,
int customer,
string name,
string pwd
)
Protected Function SendAccountAndCheckReceive (
socket As Socket,
customer As Integer,
name As String,
pwd As String
) As OperateResult
protected:
OperateResult^ SendAccountAndCheckReceive(
Socket^ socket,
int customer,
String^ name,
String^ pwd
)
member SendAccountAndCheckReceive :
socket : Socket *
customer : int *
name : string *
pwd : string -> OperateResult
参数
- socket
- 类型:System.Net.SocketsSocket
网络套接字 - customer
- 类型:SystemInt32
用户指令 - name
- 类型:SystemString
用户名 - pwd
- 类型:SystemString
密码
返回值
类型:
OperateResult是否发送成功
参见