Skip to content

Commit

Permalink
Merge pull request #1 from kylemallory/kylemallory-removed-beacon-final
Browse files Browse the repository at this point in the history
Addresses #626
  • Loading branch information
kylemallory committed Dec 2, 2018
2 parents c130c3a + 12de717 commit 10e40fc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/org/zeromq/ZBeacon.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ZBeacon
private InetAddress broadcastInetAddress;
private final BroadcastClient broadcastClient;
private final BroadcastServer broadcastServer;
private final byte[] beacon;
private byte[] beacon;
private byte[] prefix = {};
private long broadcastInterval = DEFAULT_BROADCAST_INTERVAL;
private Listener listener = null;
Expand Down Expand Up @@ -84,6 +84,16 @@ public void stop() throws InterruptedException
broadcastServer.join();
}
}

public void setBeacon(byte[] beacon)
{
this.beacon = beacon;
}

public byte[] getBeacon()
{
return beacon;
}

public void setPrefix(byte[] prefix)
{
Expand Down

0 comments on commit 10e40fc

Please sign in to comment.