Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
Are you sure you're not hitting the gethostbyaddr() calls? Also, I think the suggestion was to 'sethostent(1)', not (0). -derek "Frank Ramsay" <fjramsay1234 at hotmail.com> writes: > > sethostent(0); > > // Detect if we should call gethostbyname() or gethostbyaddr() > > if (isalpha(server_name[0])) { /* server address is a name */ > > hp = gethostbyname(server_name); > > } else { /* Convert nnn.nnn address to a usable one */ > > addr = inet_addr(server_name); > > hp = gethostbyaddr((char *)&addr,4,AF_INET); > > hp = gethostbyaddr((char *)&addr,5,AF_INET); > > } > > endhostent(); -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH warlord at MIT.EDU PGP key available
BLU is a member of BostonUserGroups | |
We also thank MIT for the use of their facilities. |