NetUdpClientReadFromServer 方法 (NetHandle, String) |
客户端向服务器进行请求,请求字符串数据,忽略了自定义消息反馈
The client makes a request to the server, requesting string data, and ignoring custom message feedback
命名空间:
HslCommunication.Enthernet
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult<string> ReadFromServer(
NetHandle customer,
string send = null
)
Public Function ReadFromServer (
customer As NetHandle,
Optional send As String = Nothing
) As OperateResult(Of String)
public:
OperateResult<String^>^ ReadFromServer(
NetHandle customer,
String^ send = nullptr
)
member ReadFromServer :
customer : NetHandle *
?send : string
(* Defaults:
let _send = defaultArg send null
*)
-> OperateResult<string>
参数
- customer
- 类型:HslCommunicationNetHandle
用户的指令头 - send (Optional)
- 类型:SystemString
发送数据
返回值
类型:
OperateResultString带返回消息的结果对象
参见