escape
驱动老牛
驱动老牛
  • 注册日期2002-02-01
  • 最后登录2004-08-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1743回复:2

linux gethostid()返回主机标识号是个啥玩艺?

楼主#
更多 发布于:2003-03-26 12:59
linux gethostid()返回主机标识号是个啥玩艺?
这大概和网络有关吗?
escape
驱动老牛
驱动老牛
  • 注册日期2002-02-01
  • 最后登录2004-08-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-03-26 13:03
是ip地址吗?
heehaw
驱动小牛
驱动小牛
  • 注册日期2003-03-20
  • 最后登录2005-04-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-03-26 16:11
      Get  or set a unique 32-bit identifier for the current machine.  The 32-bit identi-fier is intended to be unique among all UNIX systems in  existence.  This  normally
       resembles  the  Internet  address  for the local machine, as returned by gethostby-name(3), and thus usually never needs to be set.
       The sethostid call is restricted to the superuser.
       The hostid argument is stored in the file /etc/hostid.

      gethostid  returns  the  32-bit  identifier  for  the  current  host  as   set   by
 :D :D :D :D :D
我热爱生命,但面对现实的社会经常感到无奈,所以只有嘿嘿傻笑 我迷恋科技,但飞速发展的世界使我眼花缭乱,所以必须埋头苦练
游客

返回顶部