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

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

?? protocol.java

?? This is a resource based on j2me embedded,if you dont understand,you can connection with me .
?? JAVA
字號:
/* * %W% %E% * * Copyright  1990-2008 Sun Microsystems, Inc. All Rights Reserved.   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER   *    * This program is free software; you can redistribute it and/or   * modify it under the terms of the GNU General Public License version   * 2 only, as published by the Free Software Foundation.    *    * This program is distributed in the hope that it will be useful, but   * WITHOUT ANY WARRANTY; without even the implied warranty of   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   * General Public License version 2 for more details (a copy is   * included at /legal/license.txt).    *    * You should have received a copy of the GNU General Public License   * version 2 along with this work; if not, write to the Free Software   * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA   * 02110-1301 USA    *    * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa   * Clara, CA 95054 or visit www.sun.com if you need additional   * information or have any questions.  * */package com.sun.cdc.io.j2me.serversocket;import java.io.*;import java.net.*;import javax.microedition.io.*;import com.sun.cdc.io.j2me.*;import com.sun.cdc.io.*;/** * StreamConnectionNotifier to the Palm Server Socket API. * * @author  Nik Shaylor * @version 1.0 10/08/99 */public class Protocol extends ConnectionBase                       implements StreamConnectionNotifier, ServerSocketConnection {    /** Server Socket object */    ServerSocket ssocket;    /*     * Check for listen permission on the given port. A SecurityException     * will be thrown if the permission is not available. The MIDP     * protocol handler should override this method to implement the     * proper MIDP security check.     */    protected void checkPermission(int port) {        // Check for SecurityManager.checkListen()        java.lang.SecurityManager sm = System.getSecurityManager();        if (sm != null){	    sm.checkListen(port);	}        return;    }            /**     * Open the connection     * @param name the target for the connection     * @param writeable a flag that is true if the caller expects to write to the     *        connection.     * @param timeouts A flag to indicate that the called wants timeout exceptions     * <p>     * The name string for this protocol should be:     * "<port number>     */    public void open(String name, int mode, boolean timeouts) throws IOException {        //if(name.charAt(0) != '/' || name.charAt(1) != '/' || name.charAt(2) != ':') {        if(name.charAt(0) != '/' || name.charAt(1) != '/') {             throw new IllegalArgumentException("Protocol must start with \"//\" "+name);        }        /* socket:// case.  System assigned incoming port */        if (name.length() == 2) {           open();           return;        }        if(name.charAt(2) != ':') {             throw new IllegalArgumentException("Protocol must start with \"//:\" "+name);        }        name = name.substring(3);         /* socket://: case.  System assigned incoming port */        if (name.length() == 0) {            checkPermission(0);            open();            return;        }        try {            final int port;            InetAddress hostAddress = InetAddress.getLocalHost();            /* Get the port number */            port = Integer.parseInt(name);            checkPermission(port);            /* Open the socket: inbound server. Use a doPrivileged             * block to avoid excessive prompting.             */            ssocket =                (ServerSocket)java.security.AccessController.doPrivileged(                 new java.security.PrivilegedExceptionAction() {                     public Object run()                         throws java.security.PrivilegedActionException,                                IOException {                         return new ServerSocket(port);                     }                 });        } catch(NumberFormatException x) {            throw new IllegalArgumentException("Invalid port number in "+name);        } catch(java.security.PrivilegedActionException pae) {            IOException ioe = (IOException)pae.getException();            throw ioe;        }    }    /**     * Open the connection to an arbitrary system selected port and address     */     public void open() throws IOException {        ssocket = new ServerSocket();        /* binding to null to get the system assigned port */        ssocket.bind(null);     }    /**     * Returns a GenericConnection that represents a server side     * socket connection     * @return     a socket to communicate with a client.     * @exception  IOException  if an I/O error occurs when creating the     *                          input stream.     */    public StreamConnection acceptAndOpen() throws IOException {        Socket soc = ssocket.accept();        com.sun.cdc.io.j2me.socket.Protocol con =            new com.sun.cdc.io.j2me.socket.Protocol();        con.open(soc);        return con;    }    /**     * Close the connection.     *     * @exception  IOException  if an I/O error occurs when closing the     *                          connection.     */    public void close() throws IOException {        ssocket.close();    }    /**     * Gets the local address to which the socket is bound.     *     * <P>The host address(IP number) that can be used to connect to this     * end of the socket connection from an external system.     * Since IP addresses may be dynamically assigned, a remote application     * will need to be robust in the face of IP number reassignment.</P>     * <P> The local hostname (if available) can be accessed from     * <code> System.getProperty("microedition.hostname")</code>     * </P>     *     * @return the local address to which the socket is bound.     * @exception  IOException  if the connection was closed     * @see SocketConnection     */    public  String getLocalAddress() throws IOException {         if (ssocket.isClosed())            throw new IOException("ServerSocketConnection is closed");	InetAddress addr = InetAddress.getLocalHost();        if (addr == null)             return null;        else             return addr.getHostAddress();    }    /**     * Returns the local port to which this socket is bound.     *     * @return the local port number to which this socket is connected.     * @exception  IOException  if the connection was closed     * @see SocketConnection     */    public  int  getLocalPort() throws IOException {        if (ssocket.isClosed())            throw new IOException("ServerSocketConnection is closed");        return  ssocket.getLocalPort();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色在线视频| 国产成人精品亚洲日本在线桃色| 精东粉嫩av免费一区二区三区| 色噜噜久久综合| 成人av电影免费观看| 自拍偷拍国产亚洲| 欧美日韩国产综合一区二区三区 | 中文字幕在线不卡国产视频| 久久机这里只有精品| 精品精品国产高清一毛片一天堂| 国产另类ts人妖一区二区| 中文字幕日韩精品一区| 精品乱人伦一区二区三区| 亚洲视频一区二区在线| 国精产品一区一区三区mba桃花| 久久久久久夜精品精品免费| 国产午夜亚洲精品理论片色戒| 成人免费毛片高清视频| 波多野结衣中文字幕一区| 亚洲色图色小说| 91免费精品国自产拍在线不卡| 一区二区视频在线| 欧美日韩精品一区二区天天拍小说 | 欧美日本高清视频在线观看| 欧美丝袜丝nylons| 色8久久精品久久久久久蜜| 成人激情电影免费在线观看| 成人免费视频网站在线观看| 91视视频在线观看入口直接观看www | 欧美日韩中字一区| 日韩免费一区二区| 亚洲欧洲日产国产综合网| 精品一区在线看| 精品在线免费视频| 国产精品资源网| 精品国产一区二区三区久久影院| 欧美猛男男办公室激情| 91蜜桃免费观看视频| 91视频免费观看| 一本在线高清不卡dvd| 久久久久国色av免费看影院| 欧美精品一区二区三区蜜桃视频| 99久久99久久精品免费观看 | 在线观看区一区二| 欧美日韩国产大片| 欧美三级电影一区| 99精品在线免费| 成人一区二区三区中文字幕| 久久成人免费网| 国产黄色精品网站| 国产一区二区三区精品欧美日韩一区二区三区 | 99精品1区2区| 在线视频国内一区二区| 777色狠狠一区二区三区| 欧美大片国产精品| 久久品道一品道久久精品| 国产日韩欧美制服另类| 亚洲欧洲日韩在线| 一区二区三区中文在线观看| 日本午夜精品视频在线观看 | 一区二区三区在线视频免费| 午夜精品福利在线| 99视频精品在线| 精品国产一区二区三区久久影院 | 国产在线国偷精品免费看| 国产一区二区久久| 国产午夜久久久久| 国产精品亚洲午夜一区二区三区| 亚洲精品在线免费播放| 久久精品国产久精国产爱| 色综合久久中文字幕综合网| 亚洲图片另类小说| 蜜桃av一区二区| 欧美日韩不卡在线| 丝袜脚交一区二区| 日韩欧美黄色影院| 久久免费精品国产久精品久久久久 | 亚洲一区二区精品视频| 日韩精品一区国产麻豆| 亚洲国产中文字幕在线视频综合| 成人禁用看黄a在线| 欧美激情资源网| 成人小视频在线| 久久久不卡网国产精品一区| 欧美高清精品3d| 国产精品网站一区| 在线观看91精品国产入口| 亚洲一区自拍偷拍| 欧美在线高清视频| 尤物在线观看一区| 欧美性做爰猛烈叫床潮| 中文字幕一区二区三区蜜月| 日韩视频一区在线观看| 日韩一区二区三区四区| 亚洲精品videosex极品| 亚洲女厕所小便bbb| 国产精品夫妻自拍| 精品福利一区二区三区免费视频| 在线视频国内自拍亚洲视频| eeuss鲁片一区二区三区在线看| 一本到不卡免费一区二区| 国产.欧美.日韩| 成人国产精品免费观看| 成人亚洲一区二区一| 成人app网站| 91麻豆免费看| 欧美丝袜第三区| 欧美色图第一页| 欧美电影一区二区| 91精品国产综合久久香蕉麻豆 | 99精品欧美一区二区三区小说 | 蜜芽一区二区三区| 亚洲免费看黄网站| 综合久久久久综合| 一区二区三区久久| 国产毛片精品视频| 久久久国产综合精品女国产盗摄| 成人欧美一区二区三区黑人麻豆| 欧美日韩精品欧美日韩精品| 色综合天天综合网天天狠天天| 国产精品69毛片高清亚洲| 免费看日韩精品| 国产精品资源在线观看| 福利电影一区二区| 免费xxxx性欧美18vr| 韩国在线一区二区| 成人黄页在线观看| 国产91精品露脸国语对白| 91亚洲午夜精品久久久久久| 在线不卡中文字幕播放| 91精品国产综合久久香蕉的特点| 欧美成人在线直播| 日韩一区中文字幕| 美日韩一级片在线观看| 成人三级伦理片| 日韩欧美精品三级| 中文字幕亚洲一区二区av在线| 亚洲成av人片观看| 香蕉影视欧美成人| 一区二区三区中文字幕精品精品| 欧美日韩一二三| 中文字幕在线一区二区三区| 五月天欧美精品| 色先锋资源久久综合| 亚洲国产精品成人综合色在线婷婷| 亚洲成人黄色影院| 亚洲欧美视频在线观看视频| 在线播放/欧美激情| 久久亚区不卡日本| 亚洲国产毛片aaaaa无费看| 成人听书哪个软件好| 久久亚洲精精品中文字幕早川悠里| 日本亚洲三级在线| 亚洲激情成人在线| 亚洲尤物视频在线| 国产精品123| 欧美一级理论片| 亚洲乱码国产乱码精品精小说| 中文字幕一区av| 日韩精品影音先锋| 一区二区三区四区五区视频在线观看| 久久99热狠狠色一区二区| 91.麻豆视频| 欧美久久婷婷综合色| 日韩视频一区二区三区在线播放| 亚洲电影在线播放| 欧美一区二区视频观看视频| 日本美女一区二区三区视频| 国产偷v国产偷v亚洲高清| 精品日韩在线观看| 91精品麻豆日日躁夜夜躁| 日韩经典一区二区| 精品噜噜噜噜久久久久久久久试看| 久久成人久久爱| 国产精品电影院| 亚洲综合一二区| 日韩免费观看2025年上映的电影| 国产成人免费视频一区| 亚洲欧美国产三级| 欧美一二三四在线| 北岛玲一区二区三区四区| 夜夜嗨av一区二区三区网页| 精品制服美女丁香| 亚洲欧美电影一区二区| 欧美一级精品大片| 色婷婷av一区二区三区大白胸| 色菇凉天天综合网| 国产一区二区久久| 日韩黄色小视频| 久久久久青草大香线综合精品| 91视视频在线直接观看在线看网页在线看| 亚洲香蕉伊在人在线观| 中文字幕一区二区三区四区| 欧美成人乱码一区二区三区| 欧美日韩aaaaa| 欧美亚洲综合一区| 色婷婷综合久久久中文字幕| 99国产精品视频免费观看| 国产精品伊人色| 日韩一级黄色片|