Re: [zeromq-dev] First try - Java client, CPP server

2013-02-13 Thread Ivan Pechorin
Besides the zeromq usage issue(s), you have charset encoding mismatch. outData.getBytes() returns your string in UTF-16 encoding. When you receive this byte buffer in your CPP server, you just pass it to constructor of std::string that accepts it until the first 0 byte. In case of latin text encod

Re: [zeromq-dev] First try - Java client, CPP server

2013-02-13 Thread Ian Barber
On Mon, Feb 11, 2013 at 6:40 AM, Deepak Jharodia wrote: > Hi, > > I'm starting with ZMQ and created my first program. The client is in Java > and server in CPP, using respective bindings. I have three questions: > 1) I want client to connect only if server is running(on that IP). Right > now, clie