// Initialize random number generator
Random srandom = new Random(System.nanoTime());
String id = String.format("%04x-%04x", srandom.nextInt(0x10000)+1,srandom.nextInt(0x10000)+1);
client.setIdentity(id.getBytes());
client.connect("ipc://frontend.ipc");
// Send request, get reply
client.send("HELLO".getBytes(), 0);
String reply = new String(client.recv(0));
System.out.println("Client: " + reply);