6263646566676869707172
try { socket.sendString(data); callback.success(true); } catch (IOException e) { if (e.getErrno() == Nanomsg.constants.EAGAIN) { throw new EAgainException(e); } else { callback.fail(e); } } }
8687888990919293949596
try { final String received = socket.recvString(); callback.success(received); } catch (IOException e) { if (e.getErrno() == Nanomsg.constants.EAGAIN) { throw new EAgainException(e); } else { callback.fail(e); } } }
111112113114115116117118119120121
try { socket.sendBytes(data); callback.success(true); } catch (IOException e) { if (e.getErrno() == Nanomsg.constants.EAGAIN) { throw new EAgainException(e); } else { callback.fail(e); } } }
135136137138139140141142143144145
try { final byte[] received = socket.recvBytes(); callback.success(received); } catch (IOException e) { if (e.getErrno() == Nanomsg.constants.EAGAIN) { throw new EAgainException(e); } else { callback.fail(e); } } }