Documentation
VIO_GetPacketList
Require: IP-Symcon >= 5.1
array VIO_GetPacketList (int $InstanceID)
Parameters
InstanceID | ID of the virtual I/O to be updated |
Returns
Supplies an array of extended Data-Packets
Description
Returns an array of all received data packets of the virtual I/O instance with the ID InstanceID of the type Extended (Socket).
Example
// Returns an array of all extended data packets of the virtual I/O instance with the ID 12345
$allPackets = VIO_GetPacketList(12345);
print_r($allPackages);
/* returns, for example:
Array
(
[0] => Array
(
[Type] => 0
[Buffer] => Hello world
[ClientIP] => 192.168.0.8
[ClientPort] => 502
)
[1] => Array
(
[Type] => 0
[Buffer] => IP-Symcon
[ClientIP] => 192.168.0.4
[ClientPort] => 3777
)
...
)
*/