Java Socket Programming 大綱 - 網路資料庫實驗室
Java Socket Programming 大綱 - 網路資料庫實驗室
Java Socket Programming 大綱 - 網路資料庫實驗室
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
URL<br />
Host Name The name of the machine on which the resource lives.<br />
Filename The pathname to the file on the machine.<br />
Port<br />
Number<br />
Reference<br />
The port number to which to connect (typically optional).<br />
A reference to a named anchor within a resource that usually<br />
identifies a specific location within a file (typically optional<br />
建立URL<br />
使用字串來表示URL<br />
http://www.ntu.edu.tw<br />
<strong>Java</strong> <strong>Socket</strong> <strong>Programming</strong> 19<br />
URL ntu=new URL(http://www.ntu.edu.tw)<br />
除了使用絕對的URL 也可以使用 相對的<br />
URL<br />
<strong>Java</strong> <strong>Socket</strong> <strong>Programming</strong> 20<br />
10