Package org.sim0mq.test
Class Tic
java.lang.Object
org.sim0mq.test.Tic
public final class Tic extends Object
Client example for JeroMQ / ZeroMQ.
(c) copyright 2015-2020 Delft University of Technology.
BSD-style license. See DSOL License.
- Version:
- Oct 21, 2016
- Author:
- Alexander Verbraeck
-
Method Summary
Modifier and Type Method Description static String
byte2string(byte[] b)
Turn byte array with closing zero into String.static void
main(String[] args)
static byte[]
string2byte(String s)
Turn String into byte array with closing zero.
-
Method Details
-
main
- Parameters:
args
- command line arguments- Throws:
Sim0MQException
- on error
-
string2byte
Turn String into byte array with closing zero.- Parameters:
s
- the input string- Returns:
- byte array with closing zero byte
-
byte2string
Turn byte array with closing zero into String.- Parameters:
b
- the byte array with closing zero byte- Returns:
- String without closing zero
-