亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? socket.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
    if (isClosed())      throw new SocketException("socket is closed");    Object timeout = getImpl().getOption(SocketOptions.SO_TIMEOUT);    if (timeout instanceof Integer)      return (((Integer) timeout).intValue());    else      return 0;  }  /**   * This method sets the value for the system level socket option   * SO_SNDBUF to the specified value.  Note that valid values for this   * option are specific to a given operating system.   *   * @param size The new send buffer size.   *   * @exception SocketException If an error occurs or Socket not connected   * @exception IllegalArgumentException If size is 0 or negative   *   * @since 1.2   */  public void setSendBufferSize(int size) throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    if (size <= 0)      throw new IllegalArgumentException("SO_SNDBUF value must be > 0");    getImpl().setOption(SocketOptions.SO_SNDBUF, new Integer(size));  }  /**   * This method returns the value of the system level socket option   * SO_SNDBUF, which is used by the operating system to tune buffer   * sizes for data transfers.   *   * @return The send buffer size.   *   * @exception SocketException If an error occurs or socket not connected   *   * @since 1.2   */  public int getSendBufferSize() throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    Object buf = getImpl().getOption(SocketOptions.SO_SNDBUF);    if (buf instanceof Integer)      return (((Integer) buf).intValue());    else      throw new SocketException("Internal Error: Unexpected type");  }  /**   * This method sets the value for the system level socket option   * SO_RCVBUF to the specified value.  Note that valid values for this   * option are specific to a given operating system.   *   * @param size The new receive buffer size.   *   * @exception SocketException If an error occurs or Socket is not connected   * @exception IllegalArgumentException If size is 0 or negative   *   * @since 1.2   */  public void setReceiveBufferSize(int size) throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    if (size <= 0)      throw new IllegalArgumentException("SO_RCVBUF value must be > 0");    getImpl().setOption(SocketOptions.SO_RCVBUF, new Integer(size));  }  /**   * This method returns the value of the system level socket option   * SO_RCVBUF, which is used by the operating system to tune buffer   * sizes for data transfers.   *   * @return The receive buffer size.   *   * @exception SocketException If an error occurs or Socket is not connected   *   * @since 1.2   */  public int getReceiveBufferSize() throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    Object buf = getImpl().getOption(SocketOptions.SO_RCVBUF);    if (buf instanceof Integer)      return (((Integer) buf).intValue());    else      throw new SocketException("Internal Error: Unexpected type");  }  /**   * This method sets the value for the socket level socket option   * SO_KEEPALIVE.   *   * @param on True if SO_KEEPALIVE should be enabled   *   * @exception SocketException If an error occurs or Socket is not connected   *   * @since 1.3   */  public void setKeepAlive(boolean on) throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    getImpl().setOption(SocketOptions.SO_KEEPALIVE, Boolean.valueOf(on));  }  /**   * This method returns the value of the socket level socket option   * SO_KEEPALIVE.   *   * @return The setting   *   * @exception SocketException If an error occurs or Socket is not connected   *   * @since 1.3   */  public boolean getKeepAlive() throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    Object buf = getImpl().getOption(SocketOptions.SO_KEEPALIVE);    if (buf instanceof Boolean)      return (((Boolean) buf).booleanValue());    else      throw new SocketException("Internal Error: Unexpected type");  }  /**   * Closes the socket.   *   * @exception IOException If an error occurs   */  public synchronized void close() throws IOException  {    if (isClosed())      return;    getImpl().close();    impl = null;    bound = false;    if (getChannel() != null)      getChannel().close();  }  /**   * Converts this <code>Socket</code> to a <code>String</code>.   *   * @return The <code>String</code> representation of this <code>Socket</code>   */  public String toString()  {    try      {	if (isConnected())	  return ("Socket[addr=" + getImpl().getInetAddress() + ",port="	         + getImpl().getPort() + ",localport="	         + getImpl().getLocalPort() + "]");      }    catch (SocketException e)      {	// This cannot happen as we are connected.      }    return "Socket[unconnected]";  }  /**   * Sets the <code>SocketImplFactory</code>.  This may be done only once per   * virtual machine.  Subsequent attempts will generate a   * <code>SocketException</code>.  Note that a <code>SecurityManager</code>   * check is made prior to setting the factory.  If   * insufficient privileges exist to set the factory, then an   * <code>IOException</code> will be thrown.   *   * @param fac the factory to set   *   * @exception SecurityException If the <code>SecurityManager</code> does   * not allow this operation.   * @exception SocketException If the SocketImplFactory is already defined   * @exception IOException If any other error occurs   */  public static synchronized void setSocketImplFactory(SocketImplFactory fac)    throws IOException  {    // See if already set    if (factory != null)      throw new SocketException("SocketImplFactory already defined");    // Check permissions    SecurityManager sm = System.getSecurityManager();    if (sm != null)      sm.checkSetFactory();    if (fac == null)      throw new SocketException("SocketImplFactory cannot be null");    factory = fac;  }  /**   * Closes the input side of the socket stream.   *   * @exception IOException If an error occurs.   *   * @since 1.3   */  public void shutdownInput() throws IOException  {    if (isClosed())      throw new SocketException("socket is closed");    getImpl().shutdownInput();    inputShutdown = true;  }  /**   * Closes the output side of the socket stream.   *   * @exception IOException If an error occurs.   *   * @since 1.3   */  public void shutdownOutput() throws IOException  {    if (isClosed())      throw new SocketException("socket is closed");    getImpl().shutdownOutput();    outputShutdown = true;  }  /**   * Returns the socket channel associated with this socket.   *   * @return the associated socket channel,   * null if no associated channel exists   *   * @since 1.4   */  public SocketChannel getChannel()  {    return null;  }  /**   * Checks if the SO_REUSEADDR option is enabled   *   * @return True if SO_REUSEADDR is set, false otherwise.   *   * @exception SocketException If an error occurs   *   * @since 1.4   */  public boolean getReuseAddress() throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    Object reuseaddr = getImpl().getOption(SocketOptions.SO_REUSEADDR);    if (! (reuseaddr instanceof Boolean))      throw new SocketException("Internal Error");    return ((Boolean) reuseaddr).booleanValue();  }  /**   * Enables/Disables the SO_REUSEADDR option   *   * @param reuseAddress true if SO_REUSEADDR should be enabled,   * false otherwise   *   * @exception SocketException If an error occurs   *   * @since 1.4   */  public void setReuseAddress(boolean reuseAddress) throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    getImpl().setOption(SocketOptions.SO_REUSEADDR,                        Boolean.valueOf(reuseAddress));  }  /**   * Returns the current traffic class   *   * @return The current traffic class.   *   * @exception SocketException If an error occurs   *   * @see Socket#setTrafficClass(int tc)   *   * @since 1.4   */  public int getTrafficClass() throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    Object obj = getImpl().getOption(SocketOptions.IP_TOS);    if (obj instanceof Integer)      return ((Integer) obj).intValue();    else      throw new SocketException("Unexpected type");  }  /**   * Sets the traffic class value   *   * @param tc The traffic class   *   * @exception SocketException If an error occurs   * @exception IllegalArgumentException If tc value is illegal   *   * @see Socket#getTrafficClass()   *   * @since 1.4   */  public void setTrafficClass(int tc) throws SocketException  {    if (isClosed())      throw new SocketException("socket is closed");    if (tc < 0 || tc > 255)      throw new IllegalArgumentException();    getImpl().setOption(SocketOptions.IP_TOS, new Integer(tc));  }  /**   * Checks if the socket is connected   *   * @return True if socket is connected, false otherwise.   *   * @since 1.4   */  public boolean isConnected()  {    try      {	if (getImpl() == null)	  return false;	return getImpl().getInetAddress() != null;      }    catch (SocketException e)      {	return false;      }  }  /**   * Checks if the socket is already bound.   *   * @return True if socket is bound, false otherwise.   *   * @since 1.4   */  public boolean isBound()  {    return bound;  }  /**   * Checks if the socket is closed.   *   * @return True if socket is closed, false otherwise.   *   * @since 1.4   */  public boolean isClosed()  {    return impl == null;  }  /**   * Checks if the socket's input stream is shutdown   *   * @return True if input is shut down.   *   * @since 1.4   */  public boolean isInputShutdown()  {    return inputShutdown;  }  /**   * Checks if the socket's output stream is shutdown   *   * @return True if output is shut down.   *   * @since 1.4   */  public boolean isOutputShutdown()  {    return outputShutdown;  }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美理论在线播放| 成人精品鲁一区一区二区| 91福利在线观看| 亚洲免费在线视频一区 二区| 色中色一区二区| 一区二区三区美女| 欧美图片一区二区三区| 亚洲va欧美va天堂v国产综合| 欧美精品久久一区二区三区| 美女www一区二区| 国产欧美久久久精品影院| 91小视频在线免费看| 亚洲制服丝袜av| 欧美成人艳星乳罩| 国产成人在线看| 一区二区三区在线观看视频| 5858s免费视频成人| 国产一区二区三区黄视频| 中文字幕中文在线不卡住| 欧美日韩亚洲丝袜制服| 国产一区二区在线观看免费| 中文字幕中文在线不卡住| 51午夜精品国产| 成人免费视频网站在线观看| 亚洲一级片在线观看| 久久亚洲私人国产精品va媚药| 不卡视频一二三| 日本aⅴ免费视频一区二区三区| 欧美mv日韩mv亚洲| 色94色欧美sute亚洲线路一久| 日本中文一区二区三区| 国产精品国产三级国产aⅴ中文 | 久久精品免费看| 中文字幕一区二区三区精华液| 欧洲av在线精品| 国产精一品亚洲二区在线视频| 一二三四区精品视频| wwwwww.欧美系列| 欧美影视一区二区三区| 国产又黄又大久久| 午夜av一区二区| 国产精品乱码一区二区三区软件| 欧美日韩大陆一区二区| 成人av综合一区| 老汉av免费一区二区三区| 一区二区三区影院| 国产日韩成人精品| 欧美电影免费观看高清完整版在线观看| www.日本不卡| 欧美性猛片aaaaaaa做受| 久久99精品国产麻豆不卡| 亚洲老司机在线| 国产精品久久久久毛片软件| 欧美不卡激情三级在线观看| 欧美日韩精品欧美日韩精品 | 99在线精品视频| 紧缚奴在线一区二区三区| 无码av中文一区二区三区桃花岛| 国产精品天干天干在线综合| 精品日韩一区二区三区| 欧美乱妇一区二区三区不卡视频| av电影天堂一区二区在线观看| 国产麻豆日韩欧美久久| 美腿丝袜亚洲综合| 日韩中文字幕不卡| 亚洲电影第三页| 亚洲欧美日韩国产综合在线| 中文一区一区三区高中清不卡| 精品久久久久久久久久久久久久久久久 | 精品一区二区精品| 日本欧美一区二区在线观看| 亚洲成在线观看| 亚洲va韩国va欧美va精品| 亚洲黄色小视频| 一区二区三区在线观看网站| 亚洲天堂成人网| 综合久久久久久| 亚洲美女视频一区| 亚洲视频精选在线| 亚洲四区在线观看| 亚洲激情综合网| 亚洲18色成人| 日本不卡视频在线观看| 日韩电影在线观看一区| 日本亚洲一区二区| 免费成人在线网站| 国产精品一区二区在线播放 | 久久久午夜电影| 久久久精品影视| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品美女久久久久久久 | 亚洲成人激情综合网| 亚洲成人午夜电影| 美女任你摸久久| 粉嫩一区二区三区性色av| 菠萝蜜视频在线观看一区| 91网站最新地址| 欧美精品欧美精品系列| 亚洲综合免费观看高清完整版在线 | 国产一区二区三区免费播放 | 亚洲激情综合网| 亚瑟在线精品视频| 麻豆国产91在线播放| 国产99久久久精品| 在线视频综合导航| 欧美电影免费观看高清完整版| 日韩欧美视频在线| 日本一区二区成人| 亚洲国产精品一区二区尤物区| 日韩中文字幕一区二区三区| 国产在线精品免费av| 99久久久久免费精品国产| 日韩午夜精品视频| 亚洲视频综合在线| 亚洲成人av福利| 激情伊人五月天久久综合| 成人国产在线观看| 欧美日韩午夜影院| 久久午夜色播影院免费高清| 国产精品麻豆99久久久久久| 日本网站在线观看一区二区三区 | 国产精品国产精品国产专区不片| 一区二区三区在线观看国产| 精品系列免费在线观看| 色婷婷综合久久久中文字幕| 精品国产乱码久久久久久1区2区| 国产精品国产精品国产专区不片| 奇米精品一区二区三区在线观看一| 国产成人自拍在线| 在线成人免费视频| 精品一区二区三区av| 欧美亚日韩国产aⅴ精品中极品| 久久久不卡网国产精品二区| 亚洲成人在线观看视频| 99riav久久精品riav| 久久久久久久精| 热久久免费视频| 欧美日韩免费视频| 91丨porny丨国产入口| 欧美日韩午夜在线视频| 日本一区二区成人在线| 美女mm1313爽爽久久久蜜臀| 91网站最新网址| 国产欧美日韩精品a在线观看| 日韩影院免费视频| 在线观看日产精品| 成人欧美一区二区三区在线播放| 精品一区在线看| 欧美一区二区美女| 亚洲一区二区三区激情| 91视视频在线观看入口直接观看www| 久久婷婷国产综合精品青草| 美女视频免费一区| 91精品国产综合久久久蜜臀粉嫩| 一区二区欧美国产| 99r国产精品| 综合av第一页| 91丨九色porny丨蝌蚪| 国产精品久久久久精k8| 国产传媒欧美日韩成人| 久久亚洲一区二区三区四区| 激情图区综合网| 国产精品嫩草99a| 成人h动漫精品| 国产亚洲一区二区在线观看| 日本sm残虐另类| 欧美一级二级三级蜜桃| 日韩中文字幕亚洲一区二区va在线| 欧美视频中文字幕| 五月天一区二区| 正在播放亚洲一区| 秋霞午夜av一区二区三区| 91精品国产91久久综合桃花| 91精品办公室少妇高潮对白| 亚洲欧美视频在线观看视频| 91国产视频在线观看| 亚洲永久免费视频| 欧美日韩视频一区二区| 五月天网站亚洲| 日韩亚洲欧美在线| 国产精品18久久久久久久久久久久 | 日韩精品一区二区三区在线| 免费人成精品欧美精品| 久久综合狠狠综合| 高清在线不卡av| 日韩一区欧美小说| 欧美日韩一区二区三区高清| 青青草97国产精品免费观看| 欧美精品日韩一区| 亚洲国产精品一区二区久久 | 日韩精品中文字幕在线一区| 久久电影网电视剧免费观看| 国产香蕉久久精品综合网| 国产激情视频一区二区三区欧美 | 久久九九国产精品| 91网站最新网址| 免费精品99久久国产综合精品| 久久久www成人免费毛片麻豆 | 不卡的av在线| 午夜av一区二区三区|