origin crlogic

This commit is contained in:
2015-05-11 13:36:17 +02:00
parent c25a80ddfb
commit 1601fbcbfd
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ch.psi</groupId>
<artifactId>fda</artifactId>
<version>2.4.10</version>
<version>2.5.0</version>
<dependencies>
@@ -17,7 +17,7 @@
<dependency>
<groupId>ch.psi.fda</groupId>
<artifactId>ch.psi.fda.xscan</artifactId>
<version>2.3.10</version>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>ch.psi</groupId>

View File

@@ -52,7 +52,7 @@ public class ZMQDataService {
public void initialize(){
context = ZMQ.context();
zmq.ZError.clear(); // Clear error code
// zmq.ZError.clear(); // Clear error code
socket = context.socket(ZMQ.PUB);
socket.setHWM(bufferSize);
socket.bind("tcp://*:"+port);
@@ -61,7 +61,7 @@ public class ZMQDataService {
public void terminate(){
socket.close();
context.term();
zmq.ZError.clear(); // Clear error code
// zmq.ZError.clear(); // Clear error code
}
@Subscribe

View File

@@ -49,7 +49,7 @@ public class StreamClient {
public void listen(String endpoint) {
ZMQ.Context context = ZMQ.context();
zmq.ZError.clear(); // Clear error code
// zmq.ZError.clear(); // Clear error code
ZMQ.Socket socket = context.socket(ZMQ.SUB);
socket.connect(endpoint);
socket.subscribe(""); // SUBSCRIBE !