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

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

?? mysearch.java

?? jxme的一些相關程序,主要是手機上程序開發以及手機和計算機通信的一些程序資料,程序編譯需要Ant支持
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/************************************************************************
 *
 * Copyright (c) 2002 Sun Microsystems, Inc.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution,
 *    if any, must include the following acknowledgment:
 *       "This product includes software developed by the
 *       Sun Microsystems, Inc. for Project JXTA."
 *    Alternately, this acknowledgment may appear in the software itself,
 *    if and wherever such third-party acknowledgments normally appear.
 *
 * 4. The names "Sun", "Sun Microsystems, Inc.", "JXTA" and "Project JXTA"
 *    must not be used to endorse or promote products derived from this
 *    software without prior written permission. For written
 *    permission, please contact Project JXTA at http://www.jxta.org.
 *
 * 5. Products derived from this software may not be called "JXTA",
 *    nor may "JXTA" appear in their name, without prior written
 *    permission of Sun.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL SUN MICROSYSTEMS OR
 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * ====================================================================
 *
 * This software consists of voluntary contributions made by many
 * individuals on behalf of Project JXTA.  For more
 * information on Project JXTA, please see
 * <http://www.jxta.org/>.
 *
 * This license is based on the BSD license adopted by the Apache
 * Foundation.
 **********************************************************************/

/**
 * Sample code illustrating PeerNetwork.search()
 */
package tutorial;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.io.IOException;

import net.jxta.j2me.PeerNetwork;
import net.jxta.j2me.Message;
import net.jxta.j2me.Element;

/** 
 * This example illustrates how to use the JXTA for J2ME API to search
 * for Pipes on the JXTA network.
 *
 * It creates an instance of 
 * {@link PeerNetwork PeerNetwork}, connects to the JXTA
 * network, creates a pipe and issues a search request looking for
 * this pipe, and then polls for responses to this search request.<p>
 * 
 * The usage for running the application is:
 * <pre>
 *     mySearch [-relay <i>relay</i>]
 * </pre>
 *
 * where <tt>relay</tt> is the URL of the JXTA for J2ME relay hosts
 * (for example, <tt>http://209.25.154.233:9700</tt>). If no relay is
 * specified on the command line, the application attempts to use the
 * localhost as the relay.
 * 
 * Sample output when this application is run: 
 * <pre>
 * relay url: http://209.25.154.233:9700
 * listen query id: 0
 * pipe search query id: 1
 * start polling...
 * </pre>
 * <a name="response-0"><i>response-0:</i></a>
 * <pre>
 * 0 "proxy:response" "application/octet-stream" dlen=4 "info"
 * 1 "proxy:requestId" "application/octet-stream" dlen=1 "0"
 * 2 "proxy:type" "application/octet-stream" dlen=4 "PIPE"
 * 3 "proxy:name" "application/octet-stream" dlen=12 "mySearchPipe"
 * 4 "proxy:id" "application/octet-stream" dlen=80  
 *   "urn:jxta:uuid-59616261646162614E50472050325033DE91EDF073014BB19BBDA4A5D344215B04"
 * 5 "proxy:arg" "application/octet-stream" dlen=11 "JxtaUnicast"
 * 6 "jxta:EndpointDestinationAddress" "application/octet-stream" dlen=93 
 *    http://JxtaHttpClientuuid-59616261646162614A787461503250330F
 *    3E7ED95E1A48C0AE86B13D867C658E03/"
 * 7 "jxta:EndpointSourceAddress" "application/octet-stream" dlen=27  * 
 *   "http://209.25.154.233:9700/"
 * </pre>
 * <a name="response-1"><i>response-1:</i></a>
 * <pre>
 * 0 "proxy:response" "application/octet-stream" dlen=7 "success"
 * 1 "proxy:requestId" "application/octet-stream" dlen=1 "0"
 * 2 "jxta:EndpointDestinationAddress" "application/octet-stream" dlen=93  
 *   "http://JxtaHttpClientuuid-59616261646162614A787461503250330F3E7ED95E
 *    1A48C0AE86B13D867C658E0 3/"
 * 3 "jxta:EndpointSourceAddress" "application/octet-stream" dlen=27  
 *   "http://209.25.154.233:9700/"
 * </pre>
 * <a name="response-2"><i>response-2:</i></a>
 * <pre>
 * 0 "proxy:response" "application/octet-stream" dlen=6 "result"
 * 1 "proxy:requestId" "application/octet-stream" dlen=1 "1"
 * 2 "proxy:type" "application/octet-stream" dlen=4 "PIPE"
 * 3 "proxy:name" "application/octet-stream" dlen=12 "mySearchPipe"
 * 4 "proxy:id" "application/octet-stream" dlen=80  
 *   "urn:jxta:uuid-59616261646162614E50472050325033DE91EDF073014BB19BBDA4A5D344215B04"
 * 5 "proxy:arg" "application/octet-stream" dlen=11 "JxtaUnicast"
 * 6 "jxta:EndpointDestinationAddress" "application/octet-stream" dlen=93  
 *   "http://JxtaHttpClientuuid-59616261646162614A787461503250330F3E7ED95E1A48C0AE86B13D867C658E03/"
 * 7 "jxta:EndpointSourceAddress" "application/octet-stream" dlen=27 
 *   "http://209.25.154.233:9700/"
 * </pre>
 *
 * In this example, we received three messages:
 *
 * <ol>
 *
 * <li><a href="#response-0">response-0</a> is in response to
 * <code>requestID==0</code>, the <code>listen()</code> request. The
 * first five elements in this message use the proxy name space and
 * return information about the pipe that was created (name, id, type,
 * etc.). The last two elements were appended by JXTA and are used for
 * routing; these elements use the JXTA name space.</li>
 *
 * <li><a href="#response-1">response-1</a> is also in response to
 * <code>requestID==0</code>, the <code>listen()</code> request. The
 * first element returns 
 * {@link net.jxta.j2me.Message#RESPONSE_SUCCESS success}, 
 * indicating that the pipe was successfully created.</li>
 *
 * <li><a href="#response-2">response-2</a> is in response to
 * <code>requestID==1</code>, the <code>search()</code> request. The
 * first element returns
 * {@link net.jxta.j2me.Message#RESPONSE_RESULT result},
 * indicating that this message
 * contains the results of the search request.  Elements 2-5 contain
 * information about the pipe that was found (name, id, type, etc.)
 * </li>
 *
 * </ol>
 */

public final class mySearch {
    
    private static final String USAGE =
        "\nUsage: mySearch [-relay relay]" +
        "\n" +
        "options:\n" +
        "  -relay    http relay URL\n";

    private static final String PEER_NAME = "mySearch";
    private static final String PIPE_NAME = "mySearchPipe";
    private static final String PIPE_TYPE = PeerNetwork.UNICAST_PIPE;

    private PeerNetwork peerNetwork = null;
    private String relayUrl = null;
    private byte[] persistentState = null;
    private int listenQueryId = 0;
    private int pipeSearchQueryId = 0;
    
    /**
     * Constructor for the mySearch object.
     *
     * First, create a new Peer with the specified name. Although names do
     * not need to be unique, it is better for MIDP clients if they are.
     *
     * <pre>
     *    peerNetwork = PeerNetwork.createInstance(PEER_NAME)
     * </pre>
     *
     * Then, connect to the JXTA relay using:
     * <pre> 
     *     persistentState = peerNetwork.connect(relayUrl, persistentState);
     * </pre>
     *
     * A connection to a relay needs to be established before any other
     * operations can be invoked. In this example, we do not use
     * persistentState again. However, in a real application, this value
     * should be persisted and passed back on subsequent calls to
     * <code>connect()</code> so that the peer can be identified and it

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久精品国产一区| 亚洲福利一区二区| 日韩不卡免费视频| 成人理论电影网| 国产精品中文有码| 狠狠v欧美v日韩v亚洲ⅴ| 337p亚洲精品色噜噜噜| 久久蜜臀中文字幕| 日韩—二三区免费观看av| 91亚洲精品一区二区乱码| 久久这里只有精品6| 日韩精品午夜视频| 日本韩国精品在线| 国产精品久久夜| 国产一区福利在线| 91精品欧美福利在线观看| 一片黄亚洲嫩模| 99精品视频一区二区三区| 久久亚洲影视婷婷| 精品一区二区三区视频| 777奇米成人网| 极品尤物av久久免费看| 国产精品热久久久久夜色精品三区| 97se狠狠狠综合亚洲狠狠| 国产女主播一区| 国产成人免费高清| 国产精品人妖ts系列视频| 6080日韩午夜伦伦午夜伦| 玉米视频成人免费看| 在线精品视频免费播放| 日本强好片久久久久久aaa| 国产成人无遮挡在线视频| 在线亚洲高清视频| 亚洲乱码国产乱码精品精98午夜| 国产99久久久精品| 日本一区二区免费在线| 国产精品一区三区| 久久精品亚洲精品国产欧美| 国产毛片精品视频| 久久久久青草大香线综合精品| 国产乱一区二区| 中文字幕国产精品一区二区| 国产精品白丝av| 国产欧美日韩另类一区| 国产91丝袜在线播放0| 久久精品免费在线观看| 国产aⅴ综合色| 国产精品免费丝袜| aaa亚洲精品一二三区| 亚洲视频一区二区在线观看| 色狠狠av一区二区三区| 一区二区不卡在线视频 午夜欧美不卡在| 91国产免费观看| 午夜久久久影院| 欧美一二三四在线| 国产一区在线看| 国产精品无圣光一区二区| caoporm超碰国产精品| 亚洲黄色av一区| 欧美日本一区二区三区四区| 蜜臀av在线播放一区二区三区| 久久综合色婷婷| 懂色av一区二区三区蜜臀| 亚洲品质自拍视频| 欧美三日本三级三级在线播放| 五月激情综合婷婷| 精品国产123| 成人综合在线视频| 亚洲人成亚洲人成在线观看图片 | 亚洲特级片在线| 在线国产电影不卡| 蜜臀av一级做a爰片久久| 中文字幕一区日韩精品欧美| 91精品婷婷国产综合久久竹菊| 亚洲精品一区二区三区福利| 91精品一区二区三区在线观看| 在线观看日产精品| 99久久精品99国产精品| 国产东北露脸精品视频| 欧美综合视频在线观看| 国模冰冰炮一区二区| 国产在线视频一区二区| 激情综合色播五月| 成人激情视频网站| 日韩欧美一二三四区| 国产999精品久久久久久| 亚洲精品国产精华液| 欧美一三区三区四区免费在线看 | 中文字幕中文乱码欧美一区二区| 在线国产电影不卡| 国产乱码一区二区三区| 夜夜亚洲天天久久| 久久午夜免费电影| 色屁屁一区二区| 黄色日韩三级电影| 亚洲综合男人的天堂| 久久综合狠狠综合久久综合88 | 成人免费av在线| 午夜亚洲福利老司机| 国产欧美日韩中文久久| 欧美三级电影一区| 成人美女视频在线观看| 日本麻豆一区二区三区视频| 国产精品久久久爽爽爽麻豆色哟哟| 国产精品美女一区二区三区| 亚洲免费观看视频| 中文乱码免费一区二区| 欧美亚洲日本一区| 成人网在线播放| 青青草原综合久久大伊人精品优势| 欧美极品另类videosde| 69av一区二区三区| 91免费看`日韩一区二区| 久久成人免费日本黄色| 亚洲国产综合视频在线观看| 亚洲国产精品精华液2区45| 日韩西西人体444www| 在线精品国精品国产尤物884a | 亚洲午夜免费视频| 国产精品萝li| 久久久久国产精品麻豆ai换脸| 欧美日本国产视频| 91美女在线观看| 欧美精品一区二区久久久| 国产精品欧美一区喷水| 成人动漫中文字幕| 国产精品久久久久婷婷二区次| 男女性色大片免费观看一区二区 | 国产欧美日韩不卡| 午夜欧美2019年伦理| 91麻豆国产在线观看| 国产精品无人区| 91亚洲精品一区二区乱码| 国产激情一区二区三区四区| 秋霞午夜av一区二区三区| 一级日本不卡的影视| 国产精品不卡一区| 中文字幕精品一区二区精品绿巨人| 精品美女被调教视频大全网站| 欧美日韩一区久久| 在线观看日韩av先锋影音电影院| 99久久精品国产网站| 成人短视频下载 | 成人欧美一区二区三区黑人麻豆 | 国产人久久人人人人爽| ww亚洲ww在线观看国产| 精品国产免费人成电影在线观看四季 | 欧美日韩夫妻久久| 91精彩视频在线观看| 99久久精品国产观看| 成人丝袜高跟foot| 国产 欧美在线| 成人激情av网| 不卡av电影在线播放| 成人晚上爱看视频| www..com久久爱| 成人av高清在线| 99久久99久久免费精品蜜臀| 国产一区二区精品久久99| 久久97超碰国产精品超碰| 美女脱光内衣内裤视频久久影院| 日本不卡在线视频| 久久国产精品99精品国产| 久久精品国产99| 国产精品一区一区三区| 国产 欧美在线| jvid福利写真一区二区三区| 成人激情午夜影院| 一本在线高清不卡dvd| 一本色道久久加勒比精品 | 亚洲欧美色综合| 欧美色视频一区| www.亚洲激情.com| 欧美日精品一区视频| 久久99深爱久久99精品| 国产精品国产精品国产专区不片| 色婷婷亚洲一区二区三区| 日本视频在线一区| 中文字幕国产精品一区二区| 久久丝袜美腿综合| av成人免费在线观看| 亚洲成人自拍网| 国产女主播在线一区二区| 欧美亚洲高清一区| 韩国v欧美v日本v亚洲v| 综合自拍亚洲综合图不卡区| 有码一区二区三区| 天天色 色综合| 久久99国产精品免费网站| 国产成人亚洲综合a∨婷婷| 成人福利在线看| 欧美视频一区二区三区在线观看 | av电影在线不卡| 欧美性色综合网| 日韩一级二级三级| 国产日本欧美一区二区| 亚洲久本草在线中文字幕| 午夜精品久久久久久久久| 久久成人免费网| 91小视频在线|