add recv and send  function to socket layers

add recv and send  function to socket layers
fixed  bugs  when alloc ring package