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

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

?? socketconnection.java

?? SUN官方的資料
?? JAVA
字號:
/* * @(#)SocketConnection.java	1.18 02/07/24 @(#) * * Copyright (c) 2001-2002 Sun Microsystems, Inc.  All rights reserved. * PROPRIETARY/CONFIDENTIAL * Use is subject to license terms. */package javax.microedition.io;import java.lang.IllegalArgumentException;import java.io.IOException;import java.lang.String;/** * This interface defines the socket stream connection. * <P> * A socket is accessed using a generic connection string with an explicit host  * and port number. The host may be specified as a fully qualified host name or  * IPv4 number. * e.g. <code>socket://host.com:79</code> defines a target socket on the  * <code>host.com</code> system at  * port <code>79</code>. * <P>Note that  * RFC1900 recommends the use of names rather than IP numbers for best results * in the event of IP number reassignment. </P> * <H3> Closing Streams </H3> * <P> * Every <code>StreamConnection</code> provides a <code>Connection</code> * object as well as an <code>InputStream</code> and <code>OutputStream</code> * to handle the I/O associated with the connection. Each of these interfaces * has its own <code>close()</code> method. For systems that support * duplex communication over the socket connection, closing of the  * input or output stream SHOULD shutdown just that side of the  * connection. e.g. closing the <code>InputStream</code> will permit the * <code>OutputStream</code> to continue sending data. * </P> * <P> * Once the input or output stream has been closed, it can only be reopened * with a call to <code>Connector.open()</code>. The application will receive * an <code>IOException</code> if an attempt is made to reopen the stream. * </P> * <H2> * BNF Format for Connector.open() string * </H2> * <P> * The URI must conform to the BNF syntax specified below.  If the URI * does not conform to this syntax, an <code>IllegalArgumentException</code> * is thrown. * </P> * <TABLE BORDER="1"> * <TR> * <TD>&lt;socket_connection_string&gt; </TD> * <TD>::= "<strong>socket://</strong>"&lt;hostport&gt; </TD> * </TR> * <TR> * <TD>&lt;hostport&gt; </TD> * <TD>::= <I>host</I> ":" <I>port </I> </TD> * </TR> * <TR> * <TD>&lt;host&gt; </TD> * <TD>::= <I>host name or IP address </I> (omitted for inbound connections, * See <a href="ServerSocketConnection.html">ServerSocketConnection</a>) * </TD> * </TR> * <TR> * <TD>&lt;port&gt; </TD> * <TD>::= <I>numeric port number </I> </TD> * </TR> * </TABLE> * <H3> * Examples * </H3> * <P> * The following examples show how a <code>SocketConnection</code> * would be used to access a sample loopback program. * </P> * <PRE> *   SocketConnection sc = (SocketConnection) *                         Connector.open("socket://host.com:79"); *   sc.setSocketOption(SocketConnection.LINGER, 5); * *   InputStream is  = sc.openInputStream(); *   OutputStream os = sc.openOutputStream(); * *   os.write("\r\n".getBytes()); *   int ch = 0; *   while(ch != -1) { *       ch = is.read(); *   } * *   is.close(); *   os.close(); *   sc.close(); * </PRE> * @since MIDP 2.0 */public interface SocketConnection    extends StreamConnection  {    /**     * Socket option for the small buffer <em>writing delay</em> (0).     * Set to zero to disable Nagle algorithm for      * small buffer operations.     * Set to a non-zero value to enable.     */    public final byte DELAY = 0;      /**     * Socket option for the <em>linger time</em> to wait in seconds     * before closing a connection with     * pending data output (1). Setting the linger time to zero     * disables the linger wait interval.     */    public final byte LINGER = 1;    /**     * Socket option for the <em>keep alive</em> feature (2).     * Setting KEEPALIVE to zero will disable the feature.     * Setting KEEPALIVE to a non-zero value will enable the feature.     */    public final byte KEEPALIVE = 2;    /**     * Socket option for the size of the <em>receiving buffer</em> (3).     */    public final byte RCVBUF = 3;    /**     * Socket option for the size of the <em>sending buffer</em> (4).     */    public final byte SNDBUF = 4;    /**     * Set a socket option for the connection.     * <P>     * Options inform the low level networking code about intended     * usage patterns that the application will use in dealing with     * the socket connection.     * </P>     * <P>     * Calling <code>setSocketOption</code> to assign buffer sizes     * is a hint to the platform of the sizes to set the underlying      * network I/O buffers.     * Calling <code>getSocketOption</code> can  be used to see what      * sizes the system is using.     * The system MAY adjust the buffer sizes to account for      * better throughput available from Maximum Transmission Unit     * (MTU) and Maximum Segment Size (MSS) data available      * from current network information.     * </P>     *     * @param option socket option identifier (KEEPALIVE, LINGER,     * SNDBUF, RCVBUF, or DELAY)     * @param value numeric value for specified option     * @exception  IllegalArgumentException if  the value is not     *              valid (e.g. negative value) or if the option     *              identifier is not valid     * @exception  IOException  if the connection was closed     *     * @see #getSocketOption     */    public void setSocketOption(byte option,  int value)	throws IllegalArgumentException, IOException;    /**     * Get a socket option for the connection.     *     * @param option socket option identifier (KEEPALIVE, LINGER,     * SNDBUF, RCVBUF, or DELAY)     * @return  numeric value for specified option or -1 if the     *  value is not available.     * @exception IllegalArgumentException if the option identifier is     *  not valid     * @exception  IOException  if the connection was closed     * @see #setSocketOption     */    public  int getSocketOption(byte option)	throws IllegalArgumentException, IOException;    /**     * 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 reasssignment.</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 ServerSocketConnection     */    public  String getLocalAddress() throws IOException;    /**     * 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 ServerSocketConnection     */    public  int  getLocalPort() throws IOException;    /**     * Gets the remote address to which the socket is bound.     * The address can be either the remote host name or the IP     * address(if available).     *     * @return the remote address to which the socket is bound.     * @exception  IOException  if the connection was closed.     */    public  String getAddress() throws IOException;    /**     * Returns the remote port to which this socket is bound.     *     * @return the remote port number to which this socket is connected.     * @exception  IOException  if the connection was closed.     */    public  int  getPort() throws IOException;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产日产av| 91麻豆国产精品久久| 成人动漫视频在线| 欧美日韩另类一区| 欧美激情一区二区三区不卡| 天天做天天摸天天爽国产一区| 国产98色在线|日韩| 91精品欧美久久久久久动漫| 日韩伦理电影网| 美国三级日本三级久久99| 91久久精品一区二区| 视频一区免费在线观看| 精品伊人久久久久7777人| 色婷婷av一区| 欧美激情在线看| 美女免费视频一区二区| 在线精品视频小说1| 国产精品久久国产精麻豆99网站| 久草精品在线观看| 欧美美女一区二区在线观看| 亚洲精品成人悠悠色影视| 国产mv日韩mv欧美| 久久久精品影视| 精品写真视频在线观看| 欧美久久久一区| 亚洲午夜久久久| 色婷婷综合中文久久一本| 中文字幕巨乱亚洲| 国产麻豆精品一区二区| 精品国产在天天线2019| 免费一区二区视频| 欧美猛男超大videosgay| 伊人色综合久久天天人手人婷| 99久久免费精品| 国产精品成人免费| 成人性生交大片免费看视频在线| 国产女同互慰高潮91漫画| 黄页视频在线91| 久久久精品中文字幕麻豆发布| 国产河南妇女毛片精品久久久| 2023国产精品| 成人在线一区二区三区| 中文字幕视频一区二区三区久| 波多野结衣亚洲一区| 国产精品久久久久永久免费观看 | 亚洲18色成人| 欧美性色黄大片| 亚洲国产成人91porn| 欧美美女网站色| 蜜臀精品一区二区三区在线观看| 日韩一区二区免费高清| 老司机免费视频一区二区 | 欧美性高清videossexo| 亚洲成人一区在线| 欧美一区二区黄| 国产麻豆9l精品三级站| 国产欧美精品区一区二区三区 | 国产自产高清不卡| 国产精品网站在线| 色噜噜久久综合| 日韩1区2区日韩1区2区| 久久久蜜桃精品| 91麻豆精东视频| 免费成人你懂的| 国产日韩精品视频一区| 91性感美女视频| 蜜臀av性久久久久av蜜臀妖精| 欧美国产成人在线| 91久久免费观看| 精品一区二区三区久久久| 国产精品毛片无遮挡高清| 色婷婷激情久久| 国内一区二区在线| 1区2区3区国产精品| 6080yy午夜一二三区久久| 懂色av一区二区在线播放| 午夜影院久久久| 中文子幕无线码一区tr| 欧美日韩黄色影视| 成人深夜福利app| 秋霞午夜鲁丝一区二区老狼| 国产精品美女久久久久久久网站| 欧美性受极品xxxx喷水| 国产99精品在线观看| 日韩一区欧美二区| 中文字幕在线免费不卡| 日韩午夜电影在线观看| 色婷婷国产精品久久包臀| 国产麻豆精品在线观看| 亚洲国产综合在线| 国产精品美女一区二区在线观看| 日韩精品一区二区三区中文精品| 99精品视频在线观看免费| 激情五月婷婷综合| 亚洲午夜三级在线| 国产精品久久久久一区二区三区共| 91精品国产综合久久久久久久久久 | 91在线小视频| 国产一区二区剧情av在线| 日日夜夜免费精品| 一区二区在线电影| 国产精品视频在线看| 亚洲精品一区在线观看| 欧美日本一道本| 91久久精品网| 日本高清视频一区二区| av电影在线不卡| 成人永久看片免费视频天堂| 黄色小说综合网站| 美美哒免费高清在线观看视频一区二区| 亚洲综合色区另类av| 中文字幕日韩一区| 欧美国产日韩精品免费观看| 中文字幕乱码亚洲精品一区| 中文成人av在线| 国产欧美一区二区精品仙草咪| 久久一夜天堂av一区二区三区| 2020国产精品自拍| 精品噜噜噜噜久久久久久久久试看| 91精品久久久久久久99蜜桃 | 日本aⅴ免费视频一区二区三区 | 欧美一区二区日韩| 日韩亚洲欧美综合| 日韩一区二区三区三四区视频在线观看| 欧美性感一类影片在线播放| 91福利在线导航| 一本一道波多野结衣一区二区| 色婷婷综合在线| 欧洲亚洲精品在线| 欧美电影在哪看比较好| 欧美一区二区三区在线看| 日韩免费看的电影| 久久久久久久久久久久久夜| 国产精品久久久久国产精品日日| 亚洲人成在线播放网站岛国| 亚洲福利一二三区| 日产国产欧美视频一区精品| 国产伦精品一区二区三区视频青涩| 国产精品996| av一二三不卡影片| 欧美性淫爽ww久久久久无| 欧美精品久久99久久在免费线| 日韩精品一区二区三区swag| 国产精品污网站| 夜夜亚洲天天久久| 男女性色大片免费观看一区二区| 精品亚洲国产成人av制服丝袜 | 国产精品系列在线| 一区二区三区四区不卡在线 | 国产精品美女视频| 日韩精品久久理论片| 狠狠v欧美v日韩v亚洲ⅴ| aaa亚洲精品一二三区| 欧美精品日韩综合在线| 国产丝袜美腿一区二区三区| 午夜影院久久久| 成人国产精品免费观看视频| 欧美一级欧美一级在线播放| 久久成人精品无人区| 成人免费毛片aaaaa**| 欧美日韩高清一区二区不卡 | aaa国产一区| 日韩色在线观看| 亚洲欧洲制服丝袜| 久久99久久99精品免视看婷婷 | 99久久精品99国产精品| 欧美疯狂性受xxxxx喷水图片| 国产精品沙发午睡系列990531| 日韩精品欧美精品| 91麻豆免费在线观看| 久久网站热最新地址| 亚洲高清免费观看| 99精品视频一区| 精品久久久久久久人人人人传媒| 亚洲精品你懂的| 丁香一区二区三区| 日韩久久免费av| 首页国产欧美久久| 91国产福利在线| 亚洲欧美在线观看| 国产乱人伦精品一区二区在线观看 | 精品乱人伦一区二区三区| 亚洲成人动漫av| 欧洲色大大久久| 亚洲欧美视频在线观看视频| 成人免费视频国产在线观看| 久久婷婷久久一区二区三区| 久久精品国产精品亚洲综合| 91麻豆精品国产91久久久久| 亚洲国产精品嫩草影院| 91蜜桃网址入口| 国产精品久久久久9999吃药| 成人久久视频在线观看| 久久久精品2019中文字幕之3| 理论片日本一区| 欧美mv日韩mv| 激情综合五月天| 欧美变态tickle挠乳网站| 欧美aaaaa成人免费观看视频| 91精品国产一区二区人妖|