function prototypes written for receieve

function prototypes written for receieve
Revert "function prototypes written for receieve"

This reverts commit 70f780378676a133ef7d78d181326120484cad42.