plebble
us.wallet.cli.hmi Class Reference
Inheritance diagram for us.wallet.cli.hmi:
Collaboration diagram for us.wallet.cli.hmi:

Classes

class  my_daemon_rpc_api
 
class  mydispatcher
 

Public Member Functions

 hmi (PrintStream os)
 
 hmi (String[] args0, PrintStream os)
 
 hmi (params p_, PrintStream os)
 
 hmi (shell_args a, PrintStream os)
 
byte[] from_hex (String s)
 
void store_file (byte[] bytes)
 
void req_file (String hashb58)
 
void store_kv (String k, String v)
 
void rm_kv (String k)
 
void rm_f (String hashb58)
 
ko run ()
 
boolean isup ()
 
pair< ko, cfg1load_cfg (String home, boolean gen)
 
ko start ()
 
ko start (busyled_t.handler_t busyled_handler_send, busyled_t.handler_t busyled_handler_recv, datagram.dispatcher_t dis)
 
void stop ()
 
void join ()
 
void on_connect (ko error)
 
void on_peer_disconnected (final String reason)
 
void verification_completed (boolean ok)
 
void interactive_shell ()
 
KeyPair get_keys ()
 

Static Public Member Functions

static void help (params p, PrintStream os)
 
static void trader_help (boolean interactive, PrintStream os)
 
static boolean test ()
 

Public Attributes

screen scr
 
us.wallet.daemon.api_stream dapi =null
 
us.wallet.wallet.api_stream wapi =null
 
hash_t address
 
boolean advanced =false
 
boolean verbose =false
 
boolean local =false
 
String home
 
String host
 
uint16_t port
 
boolean interactive =false
 
cfg1 cfg =null
 
params p
 

Static Public Attributes

static final ko KO_11000 =new ko("KO 11000 Invalid command.")
 
static final ko KO_10020 =new ko("KO 10020 Feature not available in RPC mode.")
 
static final ko KO_10021 =new ko("KO 10021 Feature only available in RPC mode.")
 
static final ko KO_91810 =new ko("KO 91810 Not an offline command.")
 
static final ko KO_40322 =new ko("KO 40322 Not implemented.")
 
static final ko KO_39201 =new ko("KO 39201 already started.")
 

Package Functions

void constructor (PrintStream os)
 
String readFile (String path, Charset encoding) throws IOException
 
byte[] readBinFile (String path) throws IOException
 
void tx_help (params p, PrintStream os)
 
ko tx (shell_args args)
 
us.wallet.daemon.api_stream create_dapi_stream (us.wallet.daemon.api raw, PrintStream os, params p)
 
us.wallet.wallet.api_stream create_wapi_stream (us.wallet.wallet.api raw, PrintStream os, params p)
 
void trade (boolean interactive)
 
ko run_offline ()
 
ko exec (String cmdline)
 
ko exec (String cmd, shell_args args)
 
ko run_online ()
 
void banner (params p, PrintStream os)
 

Constructor & Destructor Documentation

◆ hmi() [1/4]

us.wallet.cli.hmi.hmi ( PrintStream  os)
inline

References us.wallet.cli.hmi.constructor().

Here is the call graph for this function:

◆ hmi() [2/4]

us.wallet.cli.hmi.hmi ( String[]  args0,
PrintStream  os 
)
inline

References us.wallet.cli.hmi.constructor(), and us.wallet.cli.hmi.p.

Here is the call graph for this function:

◆ hmi() [3/4]

us.wallet.cli.hmi.hmi ( params  p_,
PrintStream  os 
)
inline

References us.wallet.cli.hmi.constructor(), and us.wallet.cli.hmi.p.

Here is the call graph for this function:

◆ hmi() [4/4]

us.wallet.cli.hmi.hmi ( shell_args  a,
PrintStream  os 
)
inline

References us.wallet.cli.hmi.constructor(), and us.wallet.cli.hmi.p.

Here is the call graph for this function:

Member Function Documentation

◆ banner()

void us.wallet.cli.hmi.banner ( params  p,
PrintStream  os 
)
inlinepackage

References us.wallet.io.params.channel, us.CFG.DEBUG, us.wallet.io.params.dump(), us.wallet.io.params.local, us.CFG.LOGS, us.wallet.cli.hmi.p, us.CFG.PLATFORM, and us.vcs.version().

Referenced by us.wallet.cli.hmi.interactive_shell().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ constructor()

void us.wallet.cli.hmi.constructor ( PrintStream  os)
inlinepackage

References us.wallet.io.params.get_home_wallet(), us.wallet.cli.hmi.home, us.wallet.cli.hmi.p, and us.wallet.cli.hmi.scr.

Referenced by us.wallet.cli.hmi.hmi().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_dapi_stream()

◆ create_wapi_stream()

◆ exec() [1/2]

◆ exec() [2/2]

ko us.wallet.cli.hmi.exec ( String  cmdline)
inlinepackage

References us::gov::io::shell_args.next_string().

Referenced by us.wallet.cli.hmi.run_online().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ from_hex()

byte [] us.wallet.cli.hmi.from_hex ( String  s)
inline

◆ get_keys()

KeyPair us.wallet.cli.hmi.get_keys ( )
inline

◆ help()

static void us.wallet.cli.hmi.help ( params  p,
PrintStream  os 
)
inlinestatic

◆ interactive_shell()

◆ isup()

boolean us.wallet.cli.hmi.isup ( )
inline

References us.wallet.cli.hmi.dapi.

Referenced by us.wallet.cli.hmi.start().

Here is the caller graph for this function:

◆ join()

void us.wallet.cli.hmi.join ( )
inline

References us.wallet.cli.hmi.cfg, us.wallet.cli.hmi.dapi, and us.wallet.cli.hmi.wapi.

Referenced by main.main_test(), and us.wallet.cli.hmi.run().

Here is the caller graph for this function:

◆ load_cfg()

pair<ko, cfg1> us.wallet.cli.hmi.load_cfg ( String  home,
boolean  gen 
)
inline

References us.wallet.cli.hmi.home, and us::gov::io::cfg1.load().

Referenced by us.wallet.cli.hmi.start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_connect()

void us.wallet.cli.hmi.on_connect ( ko  error)
inline

Referenced by us.wallet.cli.hmi.my_daemon_rpc_api.on_connect().

Here is the caller graph for this function:

◆ on_peer_disconnected()

void us.wallet.cli.hmi.on_peer_disconnected ( final String  reason)
inline

Referenced by us.wallet.cli.hmi.my_daemon_rpc_api.on_peer_disconnected().

Here is the caller graph for this function:

◆ readBinFile()

byte [] us.wallet.cli.hmi.readBinFile ( String  path) throws IOException
inlinepackage

◆ readFile()

String us.wallet.cli.hmi.readFile ( String  path,
Charset  encoding 
) throws IOException
inlinepackage

◆ req_file()

void us.wallet.cli.hmi.req_file ( String  hashb58)
inline

References us.gov.crypto.ripemd160.hash_t.decode(), and us.wallet.cli.hmi.wapi.

Here is the call graph for this function:

◆ rm_f()

void us.wallet.cli.hmi.rm_f ( String  hashb58)
inline

References us.wallet.cli.hmi.address, us.gov.crypto.ripemd160.hash_t.decode(), and us.wallet.cli.hmi.wapi.

Here is the call graph for this function:

◆ rm_kv()

void us.wallet.cli.hmi.rm_kv ( String  k)
inline

◆ run()

◆ run_offline()

◆ run_online()

ko us.wallet.cli.hmi.run_online ( )
inlinepackage

References us.wallet.io.params.args, us.wallet.io.params.cmd, us.wallet.cli.hmi.dapi, us.wallet.cli.hmi.exec(), and us.wallet.cli.hmi.p.

Referenced by us.wallet.cli.hmi.interactive_shell(), and us.wallet.cli.hmi.run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start() [1/2]

ko us.wallet.cli.hmi.start ( )
inline

Referenced by main.main_test(), and us.wallet.cli.hmi.run().

Here is the caller graph for this function:

◆ start() [2/2]

◆ stop()

void us.wallet.cli.hmi.stop ( )
inline

References us.wallet.cli.hmi.dapi, and us.wallet.cli.hmi.wapi.

Referenced by main.main_test(), and us.wallet.cli.hmi.run().

Here is the caller graph for this function:

◆ store_file()

void us.wallet.cli.hmi.store_file ( byte[]  bytes)
inline

◆ store_kv()

void us.wallet.cli.hmi.store_kv ( String  k,
String  v 
)
inline

◆ test()

static boolean us.wallet.cli.hmi.test ( )
inlinestatic

References us::gov::crypto::symmetric_encryption.test().

Here is the call graph for this function:

◆ trade()

void us.wallet.cli.hmi.trade ( boolean  interactive)
inlinepackage

Referenced by us.wallet.cli.hmi.exec().

Here is the caller graph for this function:

◆ trader_help()

static void us.wallet.cli.hmi.trader_help ( boolean  interactive,
PrintStream  os 
)
inlinestatic

References us.wallet.cli.hmi.interactive.

Referenced by us.wallet.cli.hmi.help().

Here is the caller graph for this function:

◆ tx()

◆ tx_help()

void us.wallet.cli.hmi.tx_help ( params  p,
PrintStream  os 
)
inlinepackage

Referenced by us.wallet.cli.hmi.tx().

Here is the caller graph for this function:

◆ verification_completed()

void us.wallet.cli.hmi.verification_completed ( boolean  ok)
inline

Referenced by us.wallet.cli.hmi.my_daemon_rpc_api.verification_completed().

Here is the caller graph for this function:

Member Data Documentation

◆ address

◆ advanced

boolean us.wallet.cli.hmi.advanced =false

◆ cfg

cfg1 us.wallet.cli.hmi.cfg =null

◆ dapi

◆ home

String us.wallet.cli.hmi.home

◆ host

String us.wallet.cli.hmi.host

◆ interactive

boolean us.wallet.cli.hmi.interactive =false

◆ KO_10020

final ko us.wallet.cli.hmi.KO_10020 =new ko("KO 10020 Feature not available in RPC mode.")
static

Referenced by us.wallet.cli.hmi.exec().

◆ KO_10021

final ko us.wallet.cli.hmi.KO_10021 =new ko("KO 10021 Feature only available in RPC mode.")
static

◆ KO_11000

final ko us.wallet.cli.hmi.KO_11000 =new ko("KO 11000 Invalid command.")
static

◆ KO_39201

final ko us.wallet.cli.hmi.KO_39201 =new ko("KO 39201 already started.")
static

◆ KO_40322

final ko us.wallet.cli.hmi.KO_40322 =new ko("KO 40322 Not implemented.")
static

◆ KO_91810

final ko us.wallet.cli.hmi.KO_91810 =new ko("KO 91810 Not an offline command.")
static

◆ local

boolean us.wallet.cli.hmi.local =false

◆ p

◆ port

uint16_t us.wallet.cli.hmi.port

◆ scr

◆ verbose

boolean us.wallet.cli.hmi.verbose =false

◆ wapi


The documentation for this class was generated from the following file: