cleaned up send/recv details for Message and Socket modules