-
Notifications
You must be signed in to change notification settings - Fork 1
Command Page
Command for saving the log in a file.
arguments in following order:
- fileName - String
saveLog lognumber1
Command for displaying the log history to the user.
This command requires no arguments.
Command for terminating the messenger.
This command requires no arguments.
This command sends a message into a channel.
arguments in following order:
- channelIndex - int
- sign - boolean
- encrypt - boolean
- message - String
- receivers - String [comma seperated]
sendMessage 1 false false Hello! Bob,Alice
This command lists all known messages of a channel. arguments in following order:
- channelIndex - int
lsMessages 1
This command returns the hops of a message.
arguments in following order:
- channelURI - String
- position - int
getMessageDetails Channel1 5
This command lists all known channels for the peer.
This command requires no arguments.
Create a channel for writing messages to it.
arguments in following order:
- channelUri - String
- channelName - String
- channelMustNotExist - boolean
mkChannel Channel1 MyChannel true
This command changes channel age.
arguments in following order:
- channel - channelURI
- channelAge - String
Ages: Stone age Messages are only exchanged within ad-hoc networks. Messages are routed. It is like a network that is based solely on oral communication – like in the stone age. Users can copy a message and forward it. That is called gossiping. An automated message routing is not provided.
Bronze age Messages are only exchanged in ad-hoc networks like in the stone age. Messages are also routed, though. User Alice could send a message to Bob. Bob would automatically forward the original message to another user, let’s say Clara. It is like exchanging paper written notes. Each peer would make forward an exact copy of each received note.
Iron age Message are exchanged even over long-range networks. Users can barely estimate risks of potential spies.
setChannelAge Channel1 bronze
This command removes a channel from the peers known channels.
arguments in following order:
- channel - channelURI
rmChannel Channel1
Returns information about a specific peer.
arguments in following order:
- peer - peerID
ownerInfo PeerName
Returns the number of known peers.
arguments in following order:
- owner - peerID
numPeers PeerName
Creates a new pair of RSA keys.
This command requires no arguments.
Returns the time at which the RSA keys were created.
arguments in following order:
- peer - peerID
keysTime PeerName
Returns all certificates from a specific issuer.
arguments in following order:
- issuer - peerID
certByIssuer PeerName
Returns all certificates from a specific subject.
arguments in following order:
- subject - peerID
certBySubject PeerName
Returns the identity assurance of a specific peer.
arguments in following order:
- subject - peerID
ia PeerName
Returns the signing failure rate of a specific peer.
arguments in following order:
- subject - peerID
getSF PeerName
Sets the signing failure rate for a specific peer.
arguments in following order:
- subject - peerID
- failureRate - int
setSF PeerName 5
Creates a credential message which can be send to another peer.
This command requires no arguments.
Exchanges the certificates between two peers.
arguments in following order:
- subject - peerID
exchCert PeerName
Returns the path which a certificate took. arguments in following order:
- subject - peerID
certPath PeerName
List known hub information.
This command requires no arguments.
Define a new asap hub by its hostname, port and if it supports multichannel.
arguments in following order:
- hubHost - String
- hubPort - int
- multiChannel - boolean
addHubDescr hubHostName 2020 true
Remove hub description from list. arguments in following order:
- hubIndex - int
List connected hubs.
This command requires no arguments.
Connect to a hub. arguments in following order:
- hubIndex - int
This command opens a port for a peer to connect to over TCP/IP. arguments in following order:
- port - int
openTCP 8080
Close a TCP connection to another peer.
arguments in following order:
- port - int
closeTCP 8080
Connect to a host on given port number.
arguments in following order:
- port - int
- host - String
connectTCP 8080 localhost
Send a specified amount of test messages with a specified delay.
arguments in following order:
- repetitions - int
- delayInMillis - int
- channelIndex - int
- sign - boolean
- encrypt - boolean
- message - String
- receivers - String [comma seperated]
sendMessageTest 5 100 Channel1 false false Hello! Bob,Alice
This command resets all IDs and information about sent messages. Use thiswhen running multiple tests without interruptions. But make sure to save the test results before resetting.
This command requires no arguments.
This command produces two csv verification files used for evaluating the test results. One for all sent and one for all received messages. arguments in following order: *testID - String
saveTestResults Testrun1
This command starts executing all commands given by a String or File. The commands will be sequentialy executed in order.
arguments in following order:
- inSteps - boolean [If true, every other command execution waits for the user to press Enter before performing the next command.]
exec true
- Project goals
- Step 0: Concept
- Step 1: API
- Step 2: Implementation
- Step 3: Shark Component
- Step 4: Testing
- Step 5: GUI
- Javadoc
- Shark Messenger User Guide
- How to use
- Command Page
- TODO