but we could return it from the send_socket server request
Where would I look into this I see the 'macro' call inside `sock_send`, but looking at `send_socket_reply` does not seem to have an protocol attached?
It's automatically generated. You'd need to edit protocol.def and then run tools/make_requests.