作者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