put recv and send in the same program