Back

CreateNetClient

Returns a NetClient object.

  net = app.CreateNetClient( type ) → app object - NetClient

The following methods are available on the NetClient object:

  Close( )
  GetBroadcastAddress() → string
  GetType() → string: "NetClient"
  IsEnabled() → boolean
  Method( name, types, p1, p2, p3, p4 )
  ReceiveBytes( mode ) → string: "data"
  ReceiveDatagram( mode, port, timeout ) → unknown
  ReceiveText( mode ) → unknown
  WakeOnLan( ip, mac )

string: "TCP" or "Raw"
string: url path
number: integer
unknown
receive data automatically
Close
Connect NetClient
Disconnect netClient
?
GetBroadcastAddress
Returns the control class name.
return whether netClient is connected
Returns whether the control is currently useable by the user.
string
string: comma separated: "boolean", "char", "byte", "short", "int", "long", "float", "double"
Allows access to other functions defined on the object in Java via reflection.
string: "Int" or "Hex" or "?"
receive data
string: "Int" or "Hex" or "?"
number
ReceiveDatagram
ReceiveDatagrams
ReceiveFile
string: "UTF-8" or "?"
ReceiveText
string: "Int" or "Hex" or "?"
SendBytes
string: "UTF-8" or "?"
SendText
function(connected)
function(?)
?
function(?)
called when receivend some data
number: seconds
set notification display. ticker display upon active, title on notification, sub text below title
WakeOnLan