CORE POS - IS4C
The CORE POS front end
Static Public Member Functions | List of all members
UdpComm Class Reference
Inheritance diagram for UdpComm:
LibraryClass

Static Public Member Functions

static udpSend ($msg, $port=9450)
 
static udpPoke ($msg, $port=9450)
 

Detailed Description

UDP send & receive function

Member Function Documentation

static UdpComm::udpPoke (   $msg,
  $port = 9450 
)
static

Bi-directional UDP communication

Parameters
$msgthe message
$portinteger 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
$msgthe message
$portinteger port

The documentation for this class was generated from the following file: