User Tools

Site Tools


uphp:functions:netstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:netstat [2017/05/11 07:05]
admin
uphp:functions:netstat [2021/12/10 09:18] (current)
admin
Line 1: Line 1:
-======getusbstat======+======netstat======
  
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
Line 12: Line 12:
 </html></well> </html></well>
  
-Return an array containing information about the state of the network interface+This function returns an <html><b><span style="color:green">array<span style="color:black"></b></html> containing information about the state of the network interface
  
 ====Parameters==== ====Parameters====
Line 18: Line 18:
 None None
  
-====Return Value====+====Return Values====
  
 <html><b><span style="color:green">Array<span style="color:black"></b></html> containing the following keys and values: <html><b><span style="color:green">Array<span style="color:black"></b></html> containing the following keys and values:
Line 25: Line 25:
 |max_http_connections|<html><b><span style="color:green">int</b></html>|The number of HTTP connections allowed| |max_http_connections|<html><b><span style="color:green">int</b></html>|The number of HTTP connections allowed|
 |max_connections|<html><b><span style="color:green">int</b></html>|The total number of TCP connections allowed| |max_connections|<html><b><span style="color:green">int</b></html>|The total number of TCP connections allowed|
-|conn**X**_socket((Zero-based connection number, up to max_connections-1)) |<html><b><span style="color:green">int</b></html>|Socket number for connection X|+|internet_connected|<html><b><span style="color:green">int</b></html>|Returns 1 if Internet is connected (only available in fw x.1203+)| 
 +|interface|<html><b><span style="color:green">int</b></html>|Returns 0 for Ethernet, 1 for Cellular, 2 for WiFi (only available in fw x.1203+)| 
 +|conn**X**_socket((Zero-based connection number, up to max_connections-1))|<html><b><span style="color:green">int</b></html>|Socket number for connection X|
 |conn**X**_stage|<html><b><span style="color:green">int</b></html>|Socket status for connection X| |conn**X**_stage|<html><b><span style="color:green">int</b></html>|Socket status for connection X|
-|conn**X**_info|<html><b><span style="color:green">string</b></html>|Information about the connection if any|+|conn**X**_info|<html><b><span style="color:green">string</b></html>|Information about the connection if any.  For connection info string details, see the sample below.|
 |conn**X**_remote|<html><b><span style="color:green">string</b></html>|Remote host IP address| |conn**X**_remote|<html><b><span style="color:green">string</b></html>|Remote host IP address|
  
 +===Sample Connection Value===
 +
 +Open:0|Aborted:0|Process:0|Path:\app\|Fn:devcalib_ajax.cgi|Type:3|Time:0|Fstage:7|Context:0|Sockstate:4
  
 ====Example==== ====Example====
Line 42: Line 47:
 ====See Also==== ====See Also====
  
-[[setusbpower()]] - Set the USB host power on or off (1 or 0)+[[setusbpower()]] - Enable or disable USB power
  
-[[net_enable3g()]] - Enable USB dongle network connectivity if available+[[net_enable3g()]] - Enable 3G support for the dongle
  
-[[net_disable3g()]] - Disable USB dongle network connectivity+[[net_disable3g()]] - Disable 3G support for the dongle
  
 [[getethstat()]] - Get Ethernet connection status information [[getethstat()]] - Get Ethernet connection status information
  
uphp/functions/netstat.1494486315.txt.gz · Last modified: 2021/09/13 05:56 (external edit)