Пример #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);
 }
Пример #2
0
 /**
  * Returns current <tt>PseudoTcpState</tt> of this socket
  *
  * @return current <tt>PseudoTcpState</tt>
  * @see PseudoTcpState
  */
 public PseudoTcpState getState() {
   return socketImpl.getState();
 }
Пример #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);
 }
Пример #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);
 }
Пример #5
0
 /**
  * @return PseudoTCP option value
  * @see Option
  */
 public long getOption(Option option) {
   return socketImpl.getPTCPOption(option);
 }
Пример #6
0
 /** @return MTU value */
 public int getMTU() {
   return socketImpl.getMTU();
 }
Пример #7
0
 /**
  * Sets MTU value
  *
  * @param mtu
  */
 public void setMTU(int mtu) {
   socketImpl.setMTU(mtu);
 }
Пример #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);
 }
Пример #9
0
 /** @return PseudoTCP conversation ID */
 public long getConversationID() {
   return socketImpl.getConversationID();
 }