Giter Club home page Giter Club logo

jyre's Introduction

Zyre implementation in Java

How to use in your project

Add the following to your Maven project's pom.xml:

<!-- for the Zyre using jzmq -->
<dependency>
  <groupId>org.zyre</groupId>
  <artifactId>zyre</artifactId>
  <version>0.1.0-SNAPSHOT</version>
</dependency>

<!-- for the Zyre using JeroMQ -->
<dependency>
  <groupId>org.zyre</groupId>
  <artifactId>zyre-jeromq</artifactId>
  <version>0.1.1-SNAPSHOT</version>
</dependency>

Building Jyre

  • Install jzmq for your platform
  • You may need to make sure that there is a native library path defined for your platform in the pom.xml's section
  • run mvn install

Building zyre-jeromq

To build the version of jyre that uses jeromq:

  • run the script gen-zyre-jeromq.sh, this generates the subdirectory zyre-jeromq, a pom.xml, and copies src files from the jyre project
  • cd to zyre-jeromq
  • run mvn install

jyre's People

Contributors

bluehaunter avatar gabert avatar hintjens avatar ianbarber avatar ishworgurung avatar keent avatar miniway avatar pijyoi avatar sjmackenzie avatar sjohnr avatar stephen-wolf avatar trevorbernard avatar vperron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jyre's Issues

JUnit testing ends with java.util.UnknownFormatConversionException

Running JUnit tests ends up with java.util.UnknownFormatConversionException:

Platform:
Windows 7

Java version:
1.7.0_25

Stacktrace:

Exception in thread "Thread-1" Exception in thread "Thread-2" java.util.UnknownFormatConversionException: Conversion = '1'
    at java.util.Formatter.checkText(Formatter.java:2547)
    at java.util.Formatter.parse(Formatter.java:2533)
    at java.util.Formatter.format(Formatter.java:2469)
    at java.util.Formatter.format(Formatter.java:2423)
    at java.lang.String.format(String.java:2797)
    at org.zyre.ZreMsg.setIpaddress(ZreMsg.java:886)
    at org.zyre.ZreInterface$Agent.requirePeer(ZreInterface.java:352)
    at org.zyre.ZreInterface$Agent.recvUdpBeacon(ZreInterface.java:602)
    at org.zyre.ZreInterface$ZreInterfaceAgent.run(ZreInterface.java:712)
    at org.jeromq.ZThread$ShimThread.run(ZThread.java:51)
java.util.UnknownFormatConversionException: Conversion = '1'
    at java.util.Formatter.checkText(Formatter.java:2547)
    at java.util.Formatter.parse(Formatter.java:2533)
    at java.util.Formatter.format(Formatter.java:2469)
    at java.util.Formatter.format(Formatter.java:2423)
    at java.lang.String.format(String.java:2797)
    at org.zyre.ZreMsg.setIpaddress(ZreMsg.java:886)
    at org.zyre.ZreInterface$Agent.requirePeer(ZreInterface.java:352)
    at org.zyre.ZreInterface$Agent.recvUdpBeacon(ZreInterface.java:602)
    at org.zyre.ZreInterface$ZreInterfaceAgent.run(ZreInterface.java:712)
    at org.jeromq.ZThread$ShimThread.run(ZThread.java:51)

Cause of issue is setting IPV6 address with zone-id

// ZreInterface.java

private ZrePeer requirePeer (String identity, String address, int port)
{
// ...
    ZreMsg msg = new ZreMsg (ZreMsg.HELLO);
    msg.setIpaddress (this.udp.host ()); 
// ...
}
this.udp.host () returns -> fe80:0:0:0:0:5efe:c0a8:3801%16

udp.host () should probably return IPV4 address.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.