From: Nobuyoshi Nakada Date: 2006-09-06T12:49:27+09:00 Subject: Re: C socket to Ruby socket Hi, 2006/9/6, Francis Cianfrocca : > On 9/5/06, Andre Nathan wrote: > > On Wed, 2006-09-06 at 01:17 +0900, Kent Sibilev wrote: > > However I can't seem to be able to make rb_cSocket visible to my > > extension. Any hints on how to do that? rb_const_get(rb_cObject, rb_intern("TCPSocket")); > There was some radio chatter on the core list a few months back about > the fact that rb_cSocket is not externed in ruby.h. As I recall the > omission is an oversight, not something fundamental. You could also > say > > extern VALUE rb_cSocket; > > in your extension. I've done that before. It doesn't work always on all platforms. -- Nobu Nakada