예제 #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();
 }