作者andychay2 (Andychay2)
看板PangSir
標題[CN] 關於hello world client的範例
時間Thu May 31 44:44:44 2012
關於 /Clinet localhost 這個部分
有同學問到如果使用/Client linux*.csie.ntu.edu.tw 會不成功
由於上課給你們的Client 範例實際上要輸入的input是ip address而非host name
ie./Client 140.112.28.* not /Client linux*.csie.ntu.edu.tw
解決方法之一是使用Gethostbyname( )這個function取得ip address
或是直接用ip address(如本機端使用127.0.0.1)即可
by CN TAs
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.81
※ 編輯: andychay2 來自: 140.112.30.81 (03/24 17:28)
1F:推 iForests:為什麼是 2012 年... 04/13 00:31
2F:→ andychay2:終於發現了O_Q 04/16 02:53