/** * @see #setSendBufferSize(long) * * @return the kernel send buffer size. */ public long getSendBufferSize() { return getLongSockopt(SNDBUF); }
/** * @see #setReceiveBufferSize(long) * * @return the kernel receive buffer size. */ public long getReceiveBufferSize() { return getLongSockopt(RCVBUF); }
/** * @see #setSendTimeOut(int) * * @return the Send Timeout. in milliseconds */ public int getSendTimeOut() { if (ZMQ.version_full() < ZMQ.make_version(2, 2, 0)) return -1; return (int) getLongSockopt(SNDTIMEO); }
/** * @see #setReceiveTimeOut(int) * * @return the Receive Timeout in milliseconds */ public int getReceiveTimeOut() { if (ZMQ.version_full() < ZMQ.make_version(2, 2, 0)) return -1; return (int) getLongSockopt(RCVTIMEO); }
/** * @see #setMulticastHops(long) * * @return the Multicast Hops. */ public long getMulticastHops() { if (ZMQ.version_full() < ZMQ.make_version(3, 0, 0)) return 1; return getLongSockopt(MULTICAST_HOPS); }
/** * @see #setHWM(long) * * @return the High Water Mark. */ public long getHWM() { if (ZMQ.version_full() >= ZMQ.make_version(3, 0, 0)) return -1; return getLongSockopt(HWM); }
/** * @see #setBacklog(long) * * @return the backlog. * @since 3.0.0 */ public long getBacklog() { if (ZMQ.version_full() < ZMQ.make_version(3, 0, 0)) return -1; return getLongSockopt(BACKLOG); }
/** * @see #setTCPKeepAliveCount(long) * * @return the keep alive count. */ public long getTCPKeepAliveCount() { if (ZMQ.version_full() < ZMQ.make_version(3, 2, 0)) return -1; return getLongSockopt(KEEPALIVECNT); }
/** * @see #setTCPKeepAlive(long) * * @return the keep alive setting. */ public long getTCPKeepAliveSetting() { if (ZMQ.version_full() < ZMQ.make_version(3, 2, 0)) return -1; return getLongSockopt(KEEPALIVE); }
/** * @see #setAffinity(long) * * @return the affinity. */ public long getAffinity() { return getLongSockopt(AFFINITY); }
/** * @see #setMaxMsgSize(long) * * @return the maxMsgSize. * @since 3.0.0 */ public long getMaxMsgSize() { if (ZMQ.version_full() < ZMQ.make_version(3, 0, 0)) return -1; return getLongSockopt(MAXMSGSIZE); }
/** * @see #setMulticastLoop(boolean) * * @return the Multicast Loop. */ public boolean hasMulticastLoop() { if (ZMQ.version_full() < ZMQ.make_version(3, 0, 0)) return false; return getLongSockopt(MCAST_LOOP) != 0; }
/** * @see #setTCPKeepAliveInterval(long) * * @return the keep alive interval. */ public long getTCPKeepAliveInterval() { if (ZMQ.version_full() < ZMQ.make_version(3, 2, 0)) return -1; return getLongSockopt(KEEPALIVEINTVL); }
/** * @see #setLinger(long) * * @return the linger period. * @since 2.1.0 */ public long getLinger() { if (ZMQ.version_full() < ZMQ.make_version(2, 1, 0)) return -1; return getLongSockopt(LINGER); }
/** * @see #setPlainServer(boolean) * * @return if the socket is setup for PLAIN security */ public boolean getPlainServer() { if (ZMQ.version_full() >= ZMQ.make_version(4, 0, 0)) { return getLongSockopt(PLAIN_SERVER) == 1; } return false; }
/** * @see #setIPv4Only(boolean) * * @return the IPv4 only socket. */ public boolean getIPv4Only() { return getLongSockopt(IPV4ONLY) == 1; }
/** * @see #setTCPKeepAliveIdle(long) * * @return the keep alive idle value. */ public long getTCPKeepAliveIdle() { if (ZMQ.version_full() < ZMQ.make_version(3, 2, 0)) return -1; return getLongSockopt(KEEPALIVEIDLE); }
/** * @see #setSwap(long) * * @return the number of messages to swap at most. */ public long getSwap() { if (ZMQ.version_full() >= ZMQ.make_version(3, 0, 0)) return -1; return getLongSockopt(SWAP); }
/** * @see #setRcvHWM(long) * * @return the recvHWM period. * @since 3.0.0 */ public long getRcvHWM() { if (ZMQ.version_full() < ZMQ.make_version(3, 0, 0)) return -1; return getLongSockopt(RCVHWM); }
/** * The 'ZMQ_TYPE option shall retrieve the socket type for the specified 'socket'. The socket type is specified * at socket creation time and cannot be modified afterwards. * * @return the socket type. * @since 2.1.0 */ public int getType() { if (ZMQ.version_full() < ZMQ.make_version(2, 1, 0)) return -1; return (int) getLongSockopt(TYPE); }