zmq.io.HelloMsgSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeromq Show documentation
Show all versions of jeromq Show documentation
Pure Java implementation of libzmq
The newest version!
package zmq.io;
import zmq.Msg;
import zmq.Options;
import zmq.SocketBase;
import zmq.io.net.Address;
public class HelloMsgSession extends SessionBase
{
boolean newPipe;
public HelloMsgSession(IOThread ioThread, boolean connect, SocketBase socket, Options options, Address addr)
{
super(ioThread, connect, socket, options, addr);
newPipe = true;
}
@Override
protected Msg pullMsg()
{
if (newPipe) {
newPipe = false;
return options.helloMsg;
}
return super.pullMsg();
}
@Override
protected void reset()
{
super.reset();
newPipe = true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy