public static void sendTypes( Socket output, ZFrame routingId, int sequence, String client_forename, String client_surname, String client_mobile, String client_email, String supplier_forename, String supplier_surname, String supplier_mobile, String supplier_email) { ZprotoExample self = new ZprotoExample(ZprotoExample.TYPES); if (routingId != null) { self.setRoutingId(routingId); } self.setSequence(sequence); self.setClient_Forename(client_forename); self.setClient_Surname(client_surname); self.setClient_Mobile(client_mobile); self.setClient_Email(client_email); self.setSupplier_Forename(supplier_forename); self.setSupplier_Surname(supplier_surname); self.setSupplier_Mobile(supplier_mobile); self.setSupplier_Email(supplier_email); self.send(output); }
public static void sendLog( Socket output, ZFrame routingId, int sequence, int level, int event, int node, int peer, long time, String host, String data) { ZprotoExample self = new ZprotoExample(ZprotoExample.LOG); if (routingId != null) { self.setRoutingId(routingId); } self.setSequence(sequence); self.setLevel(level); self.setEvent(event); self.setNode(node); self.setPeer(peer); self.setTime(time); self.setHost(host); self.setData(data); self.send(output); }
public static void sendStructures( Socket output, ZFrame routingId, int sequence, List<String> aliases, Map<String, String> headers) { ZprotoExample self = new ZprotoExample(ZprotoExample.STRUCTURES); if (routingId != null) { self.setRoutingId(routingId); } self.setSequence(sequence); self.setAliases(new ArrayList<String>(aliases)); self.setHeaders(new HashMap<String, String>(headers)); self.send(output); }
public static void sendBinary( Socket output, ZFrame routingId, int sequence, byte[] flags, byte[] public_key, UUID identifier, ZFrame address, ZMsg content) { ZprotoExample self = new ZprotoExample(ZprotoExample.BINARY); if (routingId != null) { self.setRoutingId(routingId); } self.setSequence(sequence); self.setFlags(flags); self.setPublic_Key(public_key); self.setIdentifier(identifier); self.setAddress(address.duplicate()); self.setContent(content.duplicate()); self.send(output); }