UDP send & receive function
static UdpComm::udpPoke |
( |
|
$msg, |
|
|
|
$port = 9450 |
|
) |
| |
|
static |
Bi-directional UDP communication
- Parameters
-
$msg | the message |
$port | integer port |
- Returns
- the response or an empty string
Whatever program is listening on the other end cannot respond on the same port. It must send the response on (port+1).
static UdpComm::udpSend |
( |
|
$msg, |
|
|
|
$port = 9450 |
|
) |
| |
|
static |
Send a message via UDP
- Parameters
-
$msg | the message |
$port | integer port |
The documentation for this class was generated from the following file:
- pos/is4c-nf/lib/UdpComm.php