User Tools

Site Tools


uphp:functions:netstat

This is an old revision of the document!


getusbstat

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Get Ethernet information

Description

array netstat ( )

Return an array containing information about the state of the network interface

Parameters

None

Return Value

Array containing the following keys and values:

KEYTYPEVALUE
max_http_connectionsintThe number of HTTP connections allowed
max_connectionsintThe total number of TCP connections allowed
connX_socket1) intSocket number for connection X
connX_stageintSocket status for connection X
connX_infostringInformation about the connection if any
connX_remotestringRemote host IP address

Example

<?
  $arr=netstat();
  print("Total connections available: ".$arr['max_connections']);
?>

See Also

setusbpower() - Set the USB host power on or off (1 or 0)

net_enable3g() - Enable USB dongle network connectivity if available

net_disable3g() - Disable USB dongle network connectivity

getethstat() - Get Ethernet connection status information

1)
Zero-based connection number, up to max_connections-1
uphp/functions/netstat.1494486315.txt.gz · Last modified: 2021/09/13 05:56 (external edit)