Update send recv flags

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