Added a RecvMessage function in the network manager