Update send recv API

This patch updates the api on send/recv flag indication to be optional boolean arguments.