[1059] in Coldmud discussion meeting

root meeting help first previous next next in chain last in chain last

[COLD] Standard way of converting "a.b.c.d" to 'struct in_addr'

daemon@ATHENA.MIT.EDU (Sat Aug 10 11:09:20 1996 )

Date: Sat, 10 Aug 1996 08:59:02 -0600 (MDT)
From: Brandon Gillespie <brandon@tombstone.sunrem.com>
To: coldstuff@cold.org

Right now the driver uses inet_ntoa(), which I _thought_ was standard 
(all of the systems' man pages I checked had it, and preferred it over 
other functions).  However, Solaris does not have it.  I've been idly 
working on an alternative, but I do not have enough reference to come up 
with a solution.  I primarily need more details on what exactly 
inet_makeaddr() expects, and how to get "a.b.c.d" to the form it expects..

(sigh)

Any help would be appreciated :)

(I think I will just code up a drop in inet_ntoa() for solaris, once I 
figure out the best way to do it).

-Brandon Gillespie