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
Next revision Both sides next revision
uphp:functions:netstat [2017/05/11 07:04]
admin
uphp:functions:netstat [2021/09/13 05:57]
127.0.0.1 external edit
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 27: Line 27:
 |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**_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 45:
 ====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.txt · Last modified: 2021/12/10 09:18 by admin