1 / 6

如何利用 奇摩網站 幫你抓資料 ?

如何利用 奇摩網站 幫你抓資料 ?. 1. 建立 URL 連到奇摩 2. 傳回讀取串流 3. 利用 I/O 把資料讀回來. http://tw.google.yahoo.com/search/web_kimo?u=b&o=p&p= 井民全. 如何建立一個 網路應用程式 ?. 伺服器端 :. 1. 建立 Server 專用的 socket. 2. 等待 client 連線. 3. 讀取 / 寫入資料. SingleTalkServer.jpx. 如何建立一個 網路應用程式 ?. Client 端 :.

javen
Télécharger la présentation

如何利用 奇摩網站 幫你抓資料 ?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 如何利用 奇摩網站 幫你抓資料 ? 1. 建立 URL 連到奇摩 2. 傳回讀取串流 3. 利用 I/O 把資料讀回來 http://tw.google.yahoo.com/search/web_kimo?u=b&o=p&p=井民全

  2. 如何建立一個 網路應用程式 ? 伺服器端: 1. 建立Server專用的socket 2. 等待 client 連線 3. 讀取/寫入資料 SingleTalkServer.jpx

  3. 如何建立一個 網路應用程式 ? Client 端: 1. 建立與 Server 連線的socket 2. 讀取/寫入 資料到 Server 端 SignleTalkClient.jpx

  4. 練習: 猜數字遊戲 甲 心中答案: 1234 乙 心中答案: 8590 猜 3290 乙回覆2A 提示: //由使用者輸入一個字串,BufferedReader stdIn = new BufferedReader( new InputStreamReader(System.in) ); String UserInput= stdIn.readLine();

  5. UDP 的網路應用程式 • Datagrams : Server 端 1. 建立 Server Socket 2. 建立封包 4. 讀取來自 Client的封包 5. 秀出資料 datagramServer.jpx

  6. UDP 的網路應用程式 • Datagrams : Client 端 1. 建立 Client Socket 2. 建立傳送位址 3. 建立傳送封包 4. 發出封包 DatagramClient.jpx

More Related