From: ts Date: 2002-06-12T01:03:06+09:00 Subject: Re: hostent extension problem - returning the ip address >>>>> "B" == Berger, Daniel writes: B> Also, the eventual plan is to use the thread-safe versions provided by B> individual vendors, e.g. gethostbyname_r() on Solaris. I thought I would B> start with a basic version and work my way up from there. :) Well, even if you use gethostname_r() you must first allocate the struct and the buffer. You call gethostname_r(), create the result (rb_str_new2()), free the struct and buffer and return the result or call rb_yield(). You don't need a Data_Wrap_Struct() Guy Decoux