UdpClient
in package
Class UdpClient
This class provides a method to communicate with a server using UDP protocol.
Table of Contents
Methods
- communicate() : string
- Sends data to a server and returns the response.
Methods
communicate()
Sends data to a server and returns the response.
public
static communicate(ProtocolBase $protocolBase, string $data) : string
Parameters
- $protocolBase : ProtocolBase
-
The protocol information.
- $data : string
-
The data to send.
Tags
Return values
string —The server's response.