# Recv

**URL:** <https://www.ruby-forum.com/t/recv/91346>\
**Category:** Ruby\
**Created:** [April 7, 2007, 6:00am UTC](https://www.ruby-forum.com/t/recv/91346 "2007-04-07T06:00:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschipperheyn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Post date:** [April 7, 2007, 6:00am UTC](https://www.ruby-forum.com/t/recv/91346/1 "2007-04-07T06:00:51Z")

</div>

Seemly stupid question, can anyone tell me what class the method recv  
is defined? I can’t find it anywhere (although I haven’t looked  
through the core source yet). Could it be an alias?

Thanks,  
Marc

---

<div class="post-metadata">

**Author:** ![mschipperheyn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4491bb/32.png) [@mschipperheyn](https://www.ruby-forum.com/u/mschipperheyn)\
**Post date:** [April 7, 2007, 6:29am UTC](https://www.ruby-forum.com/t/recv/91346/2 "2007-04-07T06:29:53Z")

</div>

On 4/7/07, Marc S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Seemly stupid question, can anyone tell me what class the method recv  
> is defined? I can’t find it anywhere (although I haven’t looked  
> through the core source yet). Could it be an alias?

It is hiding in the socket.c (ext/socket/socket.c in a ruby source  
distribution) and not well documented in ri (it is however in the  
pickaxe). It is defined as a method in BasicSocket. Hope that helps.

pth
