Example #1
0
 /**
  * Sets debug name that will be displayed in log messages for this socket
  *
  * @param debugName
  */
 public void setDebugName(String debugName) {
   socketImpl.setDebugName(debugName);
 }
Example #2
0
 /**
  * Returns current <tt>PseudoTcpState</tt> of this socket
  *
  * @return current <tt>PseudoTcpState</tt>
  * @see PseudoTcpState
  */
 public PseudoTcpState getState() {
   return socketImpl.getState();
 }
Example #3
0
 /**
  * @param option PseudoTCP option to set
  * @param optValue option's value
  * @see Option
  */
 public void setOption(Option option, long optValue) {
   socketImpl.setPTCPOption(option, optValue);
 }
Example #4
0
 /**
  * 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);
 }
Example #5
0
 /**
  * @return PseudoTCP option value
  * @see Option
  */
 public long getOption(Option option) {
   return socketImpl.getPTCPOption(option);
 }
Example #6
0
 /** @return MTU value */
 public int getMTU() {
   return socketImpl.getMTU();
 }
Example #7
0
 /**
  * Sets MTU value
  *
  * @param mtu
  */
 public void setMTU(int mtu) {
   socketImpl.setMTU(mtu);
 }
Example #8
0
 /**
  * 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);
 }
Example #9
0
 /** @return PseudoTCP conversation ID */
 public long getConversationID() {
   return socketImpl.getConversationID();
 }