added class method for recv. To see the diff between recv and recvfrom.