Skip to content

Commit

Permalink
Merge pull request #80 from dlvenable/master
Browse files Browse the repository at this point in the history
Specify the Daemon Configuration
  • Loading branch information
luluzhao authored Jul 3, 2019
2 parents 4970455 + b4fe40b commit 7fe1a7d
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@ public class UDPEmitter extends Emitter {
*
*/
public UDPEmitter() throws SocketException {
config = new DaemonConfiguration();
this(new DaemonConfiguration());
}

/**
* Constructs a UDPEmitter. This overload allows you to specify the configuration.
*
* @param config The {@link DaemonConfiguration} for the Emitter.
* @throws SocketException
* if an error occurs while instantiating a {@code DatagramSocket}.
*/
public UDPEmitter(DaemonConfiguration config) throws SocketException {
this.config = config;
try {
daemonSocket = new DatagramSocket();
} catch (SocketException e) {
Expand Down

0 comments on commit 7fe1a7d

Please sign in to comment.