Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!cs.wvu.wvnet.edu!cerc.wvu.wvnet.edu!cathedral!abmg From: abmg@cathedral.cerc.wvu.wvnet.edu (Aliasghar Babadi) Newsgroups: comp.sys.sgi Subject: sgi problem Keywords: sgi bind gethostbyname Message-ID: <1578@babcock.cerc.wvu.wvnet.edu> Date: 11 Apr 91 17:38:40 GMT Sender: news@cerc.wvu.wvnet.edu Lines: 13 I have some problem with the following system calls on sgi gethostbyname() and bind() if I give the address in string format (name) I get error gethostbyname: connection refused bind: : Invalid argument , The socket is already bound to an address. I found a way out for gethostbyname by linking with -lsun -lbsd to read from yellowpages. 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.