Added blocking send and recv primitives