• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            大龍的博客

            常用鏈接

            統計

            最新評論

            Question about URLConnection

            I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to a remote host, what is the correct, clean and efficient approach to disconnect from remote host or close the connection.

            1) for HTTP why not use HttpURLConnection instead?
            2) HTTP is a stateless protocol meaning the server will close the connection for you.
            3) if you close all streams you get from the URLConnection the connection is gone.


            posted on 2011-09-23 05:22 大龍 閱讀(243) 評論(0)  編輯 收藏 引用

            7777久久久国产精品消防器材| 国产精品伊人久久伊人电影| 精品国产乱码久久久久久人妻| 亚洲国产精品18久久久久久| MM131亚洲国产美女久久| 国产精品美女久久久免费| 亚洲人成精品久久久久| 97久久精品人人做人人爽| 99久久99久久精品国产片果冻| 97久久精品人人做人人爽| 亚洲精品无码久久千人斩| 久久一区二区免费播放| 麻豆精品久久精品色综合| 影音先锋女人AV鲁色资源网久久| 国产99久久久久久免费看| 久久99热只有频精品8| 中文精品久久久久人妻| 国产三级精品久久| 久久国产精品99久久久久久老狼 | 久久综合伊人77777麻豆| 色综合久久无码五十路人妻| 国内精品伊人久久久久网站| 久久99精品久久久久久久不卡| 久久久久亚洲国产| 久久高潮一级毛片免费| 久久黄视频| 精品人妻伦一二三区久久| 中文字幕亚洲综合久久| 91精品国产91久久久久福利| 久久久噜噜噜www成人网| 亚洲国产精品无码久久98| 久久久无码精品亚洲日韩蜜臀浪潮| 久久久久一本毛久久久| 久久99精品久久久久久不卡| 精品国产一区二区三区久久蜜臀 | 久久久久人妻一区精品| 国产精品丝袜久久久久久不卡| 久久国产精品视频| 久久久久久A亚洲欧洲AV冫| 久久久久国产精品麻豆AR影院 | 亚洲精品国产第一综合99久久|