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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? socket.java

?? kaffe Java 解釋器語(yǔ)言,源碼,Java的子集系統(tǒng),開(kāi)放源代碼
?? JAVA
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/* Socket.java -- Client socket implementation   Copyright (C) 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version. GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.net;import gnu.java.net.PlainSocketImpl;import java.io.InputStream;import java.io.IOException;import java.io.OutputStream;import java.nio.channels.SocketChannel;import java.nio.channels.IllegalBlockingModeException;/* Written using on-line Java Platform 1.2 API Specification. * Status:  I believe all methods are implemented. *//** * This class models a client site socket.  A socket is a TCP/IP endpoint * for network communications conceptually similar to a file handle. * <p> * This class does not actually do any work.  Instead, it redirects all of * its calls to a socket implementation object which implements the * <code>SocketImpl</code> interface.  The implementation class is  * instantiated by factory class that implements the  * <code>SocketImplFactory interface</code>.  A default * factory is provided, however the factory may be set by a call to * the <code>setSocketImplFactory</code> method.  Note that this may only be  * done once per virtual machine.  If a subsequent attempt is made to set the * factory, a <code>SocketException</code> will be thrown. * * @author Aaron M. Renn (arenn@urbanophile.com) * @author Per Bothner (bothner@cygnus.com) */public class Socket{  /**   * This is the user SocketImplFactory for this class.  If this variable is   * null, a default factory is used.   */  static SocketImplFactory factory;  /**   * The implementation object to which calls are redirected   */  private SocketImpl impl;  /**   * True if socket implementation was created by calling their create() method.   */  private boolean implCreated;  /**   * True if the socket is bound.   */  private boolean bound;  /**   * True if input is shutdown.   */  private boolean inputShutdown;  /**   * True if output is shutdown.   */  private boolean outputShutdown;  /**   * Initializes a new instance of <code>Socket</code> object without    * connecting to a remote host.  This useful for subclasses of socket that    * might want this behavior.   *   * @specnote This constructor is public since JDK 1.4   * @since 1.1   */  public Socket ()  {    if (factory != null)      impl = factory.createSocketImpl();    else      impl = new PlainSocketImpl();  }  /**   * Initializes a new instance of <code>Socket</code> object without   * connecting to a remote host.  This is useful for subclasses of socket   * that might want this behavior.     * <p>   * Additionally, this socket will be created using the supplied   * implementation class instead the default class or one returned by a   * factory.  If this value is <code>null</code>, the default Socket   * implementation is used.   *   * @param impl The <code>SocketImpl</code> to use for this   *             <code>Socket</code>   *   * @exception SocketException If an error occurs   *   * @since 1.1   */  protected Socket (SocketImpl impl) throws SocketException  {    if (impl == null)      this.impl = new PlainSocketImpl();    else      this.impl = impl;  }  /**   * Initializes a new instance of <code>Socket</code> and connects to the    * hostname and port specified as arguments.   *   * @param host The name of the host to connect to   * @param port The port number to connect to   *   * @exception UnknownHostException If the hostname cannot be resolved to a   * network address.   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   */  public Socket (String host, int port)    throws UnknownHostException, IOException  {    this(InetAddress.getByName(host), port, null, 0, true);  }  /**   * Initializes a new instance of <code>Socket</code> and connects to the    * address and port number specified as arguments.   *   * @param address The address to connect to   * @param port The port number to connect to   *   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   */  public Socket (InetAddress address, int port)    throws IOException   {    this(address, port, null, 0, true);  }  /**   * Initializes a new instance of <code>Socket</code> that connects to the    * named host on the specified port and binds to the specified local address    * and port.   *   * @param host The name of the remote host to connect to.   * @param port The remote port to connect to.   * @param localAddr The local address to bind to.   * @param localPort The local port to bind to.   *   * @exception SecurityException If the <code>SecurityManager</code>   * exists and does not allow a connection to the specified host/port or   * binding to the specified local host/port.   * @exception IOException If a connection error occurs.   *   * @since 1.1   */  public Socket (String host, int port,		 InetAddress localAddr, int localPort) throws IOException  {    this(InetAddress.getByName(host), port, localAddr, localPort, true);  }  /**   * Initializes a new instance of <code>Socket</code> and connects to the    * address and port number specified as arguments, plus binds to the    * specified local address and port.   *   * @param address The remote address to connect to   * @param port The remote port to connect to   * @param localAddr The local address to connect to   * @param localPort The local port to connect to   *   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   *   * @since 1.1   */  public Socket (InetAddress address, int port,		 InetAddress localAddr, int localPort) throws IOException  {    this(address, port, localAddr, localPort, true);  }  /**   * Initializes a new instance of <code>Socket</code> and connects to the    * hostname and port specified as arguments.  If the stream argument is set    * to <code>true</code>, then a stream socket is created.  If it is    * <code>false</code>, a datagram socket is created.   *   * @param host The name of the host to connect to   * @param port The port to connect to   * @param stream <code>true</code> for a stream socket, <code>false</code>   * for a datagram socket   *   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   *   * @deprecated Use the <code>DatagramSocket</code> class to create   * datagram oriented sockets.   */  public Socket (String host, int port, boolean stream) throws IOException  {    this(InetAddress.getByName(host), port, null, 0, stream);  }  /**   * Initializes a new instance of <code>Socket</code> and connects to the    * address and port number specified as arguments.  If the stream param is    * <code>true</code>, a stream socket will be created, otherwise a datagram    * socket is created.   *   * @param host The address to connect to   * @param port The port number to connect to   * @param stream <code>true</code> to create a stream socket,    * <code>false</code> to create a datagram socket.   *   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   *   * @deprecated Use the <code>DatagramSocket</code> class to create   * datagram oriented sockets.   */  public Socket (InetAddress host, int port, boolean stream) throws IOException  {    this(host, port, null, 0, stream);  }  /**   * This constructor is where the real work takes place.  Connect to the   * specified address and port.  Use default local values if not specified,   * otherwise use the local host and port passed in.  Create as stream or   * datagram based on "stream" argument.   * <p>   *   * @param raddr The remote address to connect to   * @param rport The remote port to connect to   * @param laddr The local address to connect to   * @param lport The local port to connect to   * @param stream true for a stream socket, false for a datagram socket   *   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   */  private Socket(InetAddress raddr, int rport, InetAddress laddr, int lport,                 boolean stream) throws IOException  {    this();    SecurityManager sm = System.getSecurityManager();    if (sm != null)      sm.checkConnect(raddr.getHostName(), rport);    // bind socket    SocketAddress bindaddr =      laddr == null ? null : new InetSocketAddress (laddr, lport);    bind (bindaddr);        // connect socket    connect (new InetSocketAddress (raddr, rport));    // FIXME: JCL p. 1586 says if localPort is unspecified, bind to any port,    // i.e. '0' and if localAddr is unspecified, use getLocalAddress() as    // that default.  JDK 1.2 doc infers not to do a bind.  }  // This has to be accessible from java.net.ServerSocket.  SocketImpl getImpl()    throws SocketException  {    try      {	if (!implCreated)	  {	    impl.create(true);	    implCreated = true;	  }      }    catch (IOException e)      {	throw new SocketException(e.getMessage());      }    return impl;  }  /**   * Binds the socket to the givent local address/port   *   * @param bindpoint The address/port to bind to   *   * @exception IOException If an error occurs   * @exception SecurityException If a security manager exists and its   * checkConnect method doesn't allow the operation   * @exception IllegalArgumentException If the address type is not supported   *    * @since 1.4   */  public void bind (SocketAddress bindpoint) throws IOException  {    if (isClosed())      throw new SocketException("socket is closed");    // XXX: JDK 1.4.1 API documentation says that if bindpoint is null the    // socket will be bound to an ephemeral port and a valid local address.    if (bindpoint == null)      bindpoint = new InetSocketAddress (InetAddress.ANY_IF, 0);        if ( !(bindpoint instanceof InetSocketAddress))      throw new IllegalArgumentException ();    InetSocketAddress tmp = (InetSocketAddress) bindpoint;        // bind to address/port    try      {        getImpl().bind (tmp.getAddress(), tmp.getPort());	bound = true;      }    catch (IOException exception)      {        close ();        throw exception;      }    catch (RuntimeException exception)      {        close ();        throw exception;      }    catch (Error error)      {        close ();        throw error;      }  }    /**   * Connects the socket with a remote address.   *   * @param endpoint The address to connect to   *   * @exception IOException If an error occurs   * @exception IllegalArgumentException If the addess type is not supported   * @exception IllegalBlockingModeException If this socket has an associated   * channel, and the channel is in non-blocking mode   *    * @since 1.4   */  public void connect (SocketAddress endpoint)    throws IOException  {    connect (endpoint, 0);  }  /**   * Connects the socket with a remote address. A timeout of zero is   * interpreted as an infinite timeout. The connection will then block   * until established or an error occurs.   *   * @param endpoint The address to connect to   * @param timeout The length of the timeout in milliseconds, or    * 0 to indicate no timeout.   *   * @exception IOException If an error occurs   * @exception IllegalArgumentException If the address type is not supported   * @exception IllegalBlockingModeException If this socket has an associated   * channel, and the channel is in non-blocking mode   * @exception SocketTimeoutException If the timeout is reached   *    * @since 1.4   */  public void connect (SocketAddress endpoint, int timeout)    throws IOException  {    if (isClosed())      throw new SocketException("socket is closed");        if (! (endpoint instanceof InetSocketAddress))      throw new IllegalArgumentException("unsupported address type");

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线免费不卡| 亚洲成人自拍一区| 久久精品欧美日韩| 精品免费国产一区二区三区四区| 欧美日韩高清在线| 欧美日韩一卡二卡三卡| 在线观看亚洲精品| 欧美在线观看一二区| 欧美午夜片在线看| 在线观看成人免费视频| 色综合天天狠狠| 欧美性大战久久久久久久蜜臀| 91国偷自产一区二区开放时间 | 欧洲精品视频在线观看| 99久久精品国产导航| 91一区在线观看| 在线精品视频免费观看| 精品视频1区2区3区| 欧美久久久影院| 日韩视频在线一区二区| 日韩欧美不卡在线观看视频| 欧美tk—视频vk| 久久精品亚洲乱码伦伦中文| 国产精品视频一二| 亚洲色图制服丝袜| 亚洲午夜久久久久| 日韩精品一二区| 精品一区二区三区视频| 国产精品综合av一区二区国产馆| 国产麻豆成人精品| 99久久国产综合色|国产精品| 91蜜桃在线观看| 欧美精品在线视频| 欧美成人女星排名| 国产精品视频一二三区| 一区二区三区日本| 男男gaygay亚洲| 国产乱国产乱300精品| a在线欧美一区| 欧美日韩精品二区第二页| 日韩一区二区三区免费观看| 中国av一区二区三区| 亚洲老司机在线| 美国精品在线观看| 成人午夜免费电影| 欧美亚洲日本一区| 精品国产一区二区三区久久影院| 国产精品高清亚洲| 视频一区二区国产| 国产精品18久久久久久久久久久久 | 五月婷婷欧美视频| 美女任你摸久久| 99国产精品视频免费观看| 欧美日韩aaa| 国产欧美精品一区二区三区四区 | 99九九99九九九视频精品| 欧美日韩免费一区二区三区视频| 26uuu精品一区二区| 亚洲免费av在线| 久久精品久久久精品美女| 成人18精品视频| 日韩欧美激情在线| 亚洲精品美腿丝袜| 国内外成人在线视频| 欧美自拍偷拍一区| 国产亚洲精品精华液| 视频一区中文字幕| av一本久道久久综合久久鬼色| 欧美一级高清片| 亚洲精品免费看| 国产成人精品综合在线观看| 欧美人狂配大交3d怪物一区| 国产精品天干天干在观线| 另类人妖一区二区av| 91激情在线视频| 欧美激情在线看| 男女视频一区二区| 欧美三级午夜理伦三级中视频| 中文字幕av一区二区三区高| 麻豆久久久久久久| 欧美性猛片aaaaaaa做受| 国产精品入口麻豆原神| 久久99日本精品| 欧美高清一级片在线| 1024成人网| 成人高清免费观看| 久久亚洲捆绑美女| 美女网站在线免费欧美精品| 欧美日韩一级片网站| 亚洲男人的天堂av| 成人黄页毛片网站| 国产视频一区在线播放| 精品无人码麻豆乱码1区2区| 欧美精品tushy高清| 亚洲成人三级小说| 在线观看成人免费视频| 综合久久一区二区三区| 成人免费黄色大片| 国产日韩欧美在线一区| 激情国产一区二区| 精品国产亚洲一区二区三区在线观看| 天堂va蜜桃一区二区三区漫画版| 日本久久一区二区三区| 亚洲视频在线一区观看| fc2成人免费人成在线观看播放| 中文字幕免费一区| 国产aⅴ精品一区二区三区色成熟| 欧美精品一区二区三区在线 | 99在线精品观看| 国产精品久久久久久妇女6080| 国产成人综合网站| 国产欧美日韩精品a在线观看| 国产精品一区二区免费不卡| 国产亚洲精品aa| 成人免费观看男女羞羞视频| 国产精品美日韩| 色综合久久久网| 樱花草国产18久久久久| 欧美性生活影院| 日韩高清不卡在线| 欧美一区二区三区成人| 久久国产剧场电影| xvideos.蜜桃一区二区| 成人性生交大合| 亚洲美女在线国产| 欧美手机在线视频| 日本麻豆一区二区三区视频| 日韩一区二区在线观看| 国产精品综合一区二区| 亚洲欧洲精品一区二区三区不卡| 91蝌蚪porny九色| 天天色图综合网| 精品成人免费观看| 成人禁用看黄a在线| 亚洲人成网站影音先锋播放| 欧美日韩精品欧美日韩精品一综合| 日本大胆欧美人术艺术动态| 欧美精品一区在线观看| thepron国产精品| 一区二区三区四区亚洲| 欧美一区二区大片| 国产精品一二三区| 亚洲人亚洲人成电影网站色| 精品视频一区三区九区| 国产中文字幕精品| 1024亚洲合集| 日韩午夜电影av| 成人av第一页| 亚洲福利一区二区三区| 精品国产青草久久久久福利| 99视频国产精品| 日本视频中文字幕一区二区三区| 国产亚洲污的网站| 亚洲天堂精品在线观看| 欧美精品久久一区二区三区| 国产精品一区二区不卡| 一区二区三区在线影院| 日韩免费在线观看| 99精品视频一区二区三区| 日韩国产一二三区| 国产精品视频线看| 91精品国产一区二区三区香蕉| 成人午夜在线播放| 免费观看91视频大全| 亚洲欧美另类久久久精品 | 五月天激情小说综合| 欧美韩国日本一区| 欧美喷水一区二区| 不卡一二三区首页| 麻豆久久久久久久| 亚洲综合一区二区| 国产无一区二区| 欧美一区二区三区播放老司机| 91在线无精精品入口| 久99久精品视频免费观看| 亚洲制服丝袜一区| 国产欧美日韩中文久久| 91麻豆精品国产91久久久久久久久| av男人天堂一区| 狠狠色狠狠色综合日日91app| 亚洲国产欧美另类丝袜| 欧美国产成人精品| 日韩视频一区二区三区在线播放 | 91在线视频播放| 国产一本一道久久香蕉| 亚洲成人av一区| 亚洲精品久久嫩草网站秘色| 日本一区二区成人在线| 精品毛片乱码1区2区3区| 欧美群妇大交群的观看方式| 91极品美女在线| 99精品欧美一区二区三区小说| 国产乱码精品1区2区3区| 麻豆精品新av中文字幕| 亚洲成人自拍网| 成人网页在线观看| 国产成人在线视频免费播放| 久久激情综合网| 蜜臀av一区二区| 日韩黄色小视频|