Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (23 sloc) 0.473 kb
1307f0d @yoshihiro503 build for ocamldoc
authored
1 (**
2 A simple TCP Socket client
3 *)
4
5 (** port number *)
353d8c8 @yoshihiro503 simple socket library
authored
6 type port = int
7
1307f0d @yoshihiro503 build for ocamldoc
authored
8 (**
9 connection with ipaddress as string
10 {[
11 conn_ip 80 "59.106.178.240" begin fun in_ out ->
12 ...
13 end
14 ]}
15 *)
16 val conn_ip : port -> string -> (in_channel -> out_channel -> 'a) -> 'a
17
18 (**
19 connection with hostname
20 {[
21 conn_hostname 80 "proofcafe.org" begin fun in_ out ->
22 ...
23 end
24 ]}
25 *)
26 val conn_hostname : port -> string -> (in_channel -> out_channel -> 'a) -> 'a
Something went wrong with that request. Please try again.