Hello What is the correct way to convert a C socket (int) to a Ruby Socket object in a C extension? Something like int s = socket(...); VALUE sock = rb_some_func(s); In my extension there's a callback function that receives a socket as an argument, and I'd like to pass that socket as an argument to a ruby block, so I need to convert it to a Socket object first. Thanks in advance, Andre