/** * Sets debug name that will be displayed in log messages for this socket * * @param debugName */ public void setDebugName(String debugName) { socketImpl.setDebugName(debugName); }
/** * Returns current <tt>PseudoTcpState</tt> of this socket * * @return current <tt>PseudoTcpState</tt> * @see PseudoTcpState */ public PseudoTcpState getState() { return socketImpl.getState(); }
/** * @param option PseudoTCP option to set * @param optValue option's value * @see Option */ public void setOption(Option option, long optValue) { socketImpl.setPTCPOption(option, optValue); }
/** * Blocking method waits for connection. * * @param timeout for this operation in ms * @throws IOException If socket gets closed or timeout expires */ public void accept(int timeout) throws IOException { socketImpl.accept(timeout); }
/** * @return PseudoTCP option value * @see Option */ public long getOption(Option option) { return socketImpl.getPTCPOption(option); }
/** @return MTU value */ public int getMTU() { return socketImpl.getMTU(); }
/** * Sets MTU value * * @param mtu */ public void setMTU(int mtu) { socketImpl.setMTU(mtu); }
/** * Set conversation ID for the socket Must be called on unconnected socket * * @param convID * @throws IllegalStateException when called on connected or closed socket */ public void setConversationID(long convID) throws IllegalStateException { socketImpl.setConversationID(convID); }
/** @return PseudoTCP conversation ID */ public long getConversationID() { return socketImpl.getConversationID(); }