All Packages Class Hierarchy This Package Previous Next Index
Class semper.payment.ecash.HandleAction
java.lang.Object
|
+----semper.payment.ecash.HandleAction
- public class HandleAction
- extends Object
-
TCP_PREFIX_MAGIC_NUMBER
- Ecash magic number.
-
HandleAction()
-
-
handleAction(ActionHandler)
-
Currently handleAction only deals with pure ecash messages.
-
listen()
-
-
toAddress(String, int)
-
Java equivalent of test_host_name_to_addr (t_tcp.c)
Encodes a TCP/IP address into an Address.
TCP_PREFIX_MAGIC_NUMBER
public static final int TCP_PREFIX_MAGIC_NUMBER
- Ecash magic number. All messages exchanged between
ecash clients and mints start with this 4-byte number.
HandleAction
public HandleAction()
handleAction
public static void handleAction(ActionHandler acth) throws ECException
- Currently handleAction only deals with pure ecash messages.
Next step is to do all payment related messages between consumer
and merchant over the Semper channel. Note that during a payment
the merchant will both communicate over the Semper channel (with
the consumer) and over an "ecash channel" (with the ecash mint).
The two cases can be distinguished from acth.get_addr().
- Throws: ECException
- caught by ecashPocket
listen
public static Vector listen() throws ECException
toAddress
public static Address toAddress(String hostname,
int port) throws ECException
- Java equivalent of test_host_name_to_addr (t_tcp.c)
Encodes a TCP/IP address into an Address.
DigiCash Ecash(tm) clients and DigiCash mints
use "hostname:port", but let's try moving
to the more flexible "TCP:hostname:port".
- Throws: ECException
- caught by ecashPocket
All Packages Class Hierarchy This Package Previous Next Index