server.ml 175 B

123456
  1. let _ =
  2. Unix.establish_server
  3. (fun inc outc ->
  4. let x : string = input_value inc in
  5. output_value outc ("Server Response: " ^ x))
  6. (Unix.ADDR_UNIX "khooy")