Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!purdue!haven!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!abmg From: abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi) Newsgroups: comp.windows.x Subject: sgi bind Keywords: bind gethostbyname sgi source Message-ID: <1576@babcock.cerc.wvu.wvnet.edu> Date: 11 Apr 91 16:18:34 GMT Article-I.D.: babcock.1576 Sender: news@cerc.wvu.wvnet.edu Lines: 15 Hi: I have some problem with the following system calls on sgi gethostbyname() and bind() if I give the address in string format I get error gethostbyname: connection refused bind: : Invalid argument , The socket is already bound to an address. I found the problem for gethostbyname by linking with -lsun -lbsd to read from yellowpages instead of /etc/hosts. but couldn't find a solution for bind.If I give the dot notation address there is no problem, but when I give the string address (name ) I get the bind error. Thanks for your help.