Package org.sim0mq.test.reqrep
Class Tic
- java.lang.Object
-
- org.sim0mq.test.reqrep.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
All Methods Static Methods Concrete Methods 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 Detail
-
main
public static void main(String[] args) throws Sim0MQException
- Parameters:
args
- command line arguments- Throws:
Sim0MQException
- on error
-
string2byte
public static byte[] string2byte(String s)
Turn String into byte array with closing zero.- Parameters:
s
- the input string- Returns:
- byte array with closing zero byte
-
byte2string
public static String byte2string(byte[] b)
Turn byte array with closing zero into String.- Parameters:
b
- the byte array with closing zero byte- Returns:
- String without closing zero
-
-