This is an old revision of the document!
WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0
Get Ethernet information
This function returns an array containing information about the state of the network interface
None
Array containing the following keys and values:
KEY | TYPE | VALUE |
---|---|---|
max_http_connections | int | The number of HTTP connections allowed |
max_connections | int | The total number of TCP connections allowed |
connX_socket1) | int | Socket number for connection X |
connX_stage | int | Socket status for connection X |
connX_info | string | Information about the connection if any. For connection info string details, see the sample below. |
connX_remote | string | Remote host IP address |
Open:0|Aborted:0|Process:0|Path:\app\|Fn:devcalib_ajax.cgi|Type:3|Time:0|Fstage:7|Context:0|Sockstate:4
<? $arr=netstat(); print("Total connections available: ".$arr['max_connections']); ?>
setusbpower() - Enable or disable USB power
net_enable3g() - Enable 3G support for the dongle
net_disable3g() - Disable 3G support for the dongle
getethstat() - Get Ethernet connection status information