1. Yaron Minsky
  2. core hello world


core hello world / hello_protocol.ml

Diff from to

File hello_protocol.ml

 open Core.Std
 open Async.Std
-(** A simple RPC for saying hello *)
+(** The protocol for communicating between the hello client and server.
+    There's a single RPC call exposed, which lets you send and receive a
+    string.
+    The [bin_query] and [bin_response] arguments are values that contain logic
+    for binary serialization of the query and response types, in this case,
+    both strings.
+    The version number is used when you want to mint new versions of an RPC
+    without disturbing older versions.
 let hello_rpc = Rpc.Rpc.create