Updated sock_send_msg