Index of values


(=) [Versioned_typed_tcp.Mode]
(=) [Versioned_typed_tcp.Dont_care_about_mode]

A
abort [Rpc.State_rpc]
abort [Rpc.Pipe_rpc]
add [Versioned_typed_tcp.Version]
add [Versioned_rpc.Menu]
add impls extends a list of rpc implementations with an additional rpc implementation for providing a Menu.t when one is requested via Menu.request.
already_closed [Rpc.Connection]

B
bigsubstring_allocator [Versioned_typed_tcp]
bin_read_t [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_read_t [Versioned_typed_tcp.Client_msg.Control]
bin_read_t [Versioned_typed_tcp.Client_msg]
bin_read_t [Versioned_typed_tcp.Server_msg.Control]
bin_read_t [Versioned_typed_tcp.Read_result]
bin_read_t [Versioned_typed_tcp.Dont_care_about_mode]
bin_read_t [Tcp_file.Client.Message]
bin_read_t_ [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_read_t_ [Versioned_typed_tcp.Client_msg.Control]
bin_read_t_ [Versioned_typed_tcp.Client_msg]
bin_read_t_ [Versioned_typed_tcp.Server_msg.Control]
bin_read_t_ [Versioned_typed_tcp.Read_result]
bin_read_t_ [Versioned_typed_tcp.Dont_care_about_mode]
bin_read_t_ [Tcp_file.Client.Message]
bin_read_t__ [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_read_t__ [Versioned_typed_tcp.Client_msg.Control]
bin_read_t__ [Versioned_typed_tcp.Client_msg]
bin_read_t__ [Versioned_typed_tcp.Server_msg.Control]
bin_read_t__ [Versioned_typed_tcp.Read_result]
bin_read_t__ [Versioned_typed_tcp.Dont_care_about_mode]
bin_read_t__ [Tcp_file.Client.Message]
bin_reader_t [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_reader_t [Versioned_typed_tcp.Client_msg.Control]
bin_reader_t [Versioned_typed_tcp.Client_msg]
bin_reader_t [Versioned_typed_tcp.Server_msg.Control]
bin_reader_t [Versioned_typed_tcp.Read_result]
bin_reader_t [Versioned_typed_tcp.Dont_care_about_mode]
bin_reader_t [Tcp_file.Client.Message]
bin_size_t [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_size_t [Versioned_typed_tcp.Client_msg.Control]
bin_size_t [Versioned_typed_tcp.Client_msg]
bin_size_t [Versioned_typed_tcp.Server_msg.Control]
bin_size_t [Versioned_typed_tcp.Read_result]
bin_size_t [Versioned_typed_tcp.Dont_care_about_mode]
bin_size_t [Tcp_file.Client.Message]
bin_t [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_t [Versioned_typed_tcp.Client_msg.Control]
bin_t [Versioned_typed_tcp.Client_msg]
bin_t [Versioned_typed_tcp.Server_msg.Control]
bin_t [Versioned_typed_tcp.Read_result]
bin_t [Versioned_typed_tcp.Dont_care_about_mode]
bin_t [Tcp_file.Client.Message]
bin_write_t [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_write_t [Versioned_typed_tcp.Client_msg.Control]
bin_write_t [Versioned_typed_tcp.Client_msg]
bin_write_t [Versioned_typed_tcp.Server_msg.Control]
bin_write_t [Versioned_typed_tcp.Read_result]
bin_write_t [Versioned_typed_tcp.Dont_care_about_mode]
bin_write_t [Tcp_file.Client.Message]
bin_write_t_ [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_write_t_ [Versioned_typed_tcp.Client_msg.Control]
bin_write_t_ [Versioned_typed_tcp.Client_msg]
bin_write_t_ [Versioned_typed_tcp.Server_msg.Control]
bin_write_t_ [Versioned_typed_tcp.Read_result]
bin_write_t_ [Versioned_typed_tcp.Dont_care_about_mode]
bin_write_t_ [Tcp_file.Client.Message]
bin_writer_t [Versioned_typed_tcp.Datumable_of_binable.T_bin]
bin_writer_t [Versioned_typed_tcp.Client_msg.Control]
bin_writer_t [Versioned_typed_tcp.Client_msg]
bin_writer_t [Versioned_typed_tcp.Server_msg.Control]
bin_writer_t [Versioned_typed_tcp.Read_result]
bin_writer_t [Versioned_typed_tcp.Dont_care_about_mode]
bin_writer_t [Tcp_file.Client.Message]
bytes_to_write [Rpc.Connection]
bytes_to_write [File_writer]
bytes_to_write () returns the sum over all async_file_writers of how many bytes they need to write.

C
client [Rpc.Connection]
client ~host ~port connects to the server at (host,port) and returns the connection or an Error if a connection could not be made.
client_addr_port [Typed_tcp_intf.S]
close [Versioned_typed_tcp.S.Server]
close t client close connection to client if it exists.
close [Versioned_typed_tcp.Make.Server]
close [Typed_tcp_intf.Arg.Transport]
close [Typed_tcp_intf.S]
close [Tcp_file.Server]
close t closes the file t for writing.
close [Rpc.Connection]
close [File_writer]
close_connection [Versioned_typed_tcp.S.Client]
If a connection is currently established, close it.
close_connection [Versioned_typed_tcp.Make.Client]
closed [Rpc.Connection]
connect [Versioned_typed_tcp.S.Client]
connect t If the connection is not currently established, initiate one.
connect [Versioned_typed_tcp.Make.Client]
connect [Tcp_file.Client]
connect [Tcp]
connect ~host ~port is a convenience wrapper around connect_sock that returns a reader and writer on the socket.
connect_sock [Tcp]
connect_sock ~host ~port opens a TCP connection to the specified hostname and port, returning the socket.
connect_sock_unix [Tcp]
connect_unix [Tcp]
create [Versioned_typed_tcp.S.Client]
create a new (initially disconnected) client
create [Versioned_typed_tcp.S.Server]
create a new server, and start listening
create [Versioned_typed_tcp.Make.Client]
create [Versioned_typed_tcp.Make.Server]
create [Typed_tcp_intf.Arg.Transport]
create [Typed_tcp_intf.S]
create [Rpc.State_rpc]
create [Rpc.Pipe_rpc]
create [Rpc.Rpc]
create [Rpc.Connection]
Initiate an Rpc connection on the given reader/writer pair.
create [Rpc.Server]
create ~implementations ~on_unknown_rpc creates a server capable of responding to the rpc's implemented in the implementation list.
create [Lock_file]
create ?message path tries to create a file at path containing the text message, pid if none provided.
create [File_writer]
create file opens file, creating it if it doesn't exist.
create [File_tail]
create file creates a File_tail.t that will immediately begin reading file, and then will start the stat-read loop.
create_exn [Rpc.Server]
create_exn [Lock_file]
create_exn ?message path is like create except that it throws an exception on failure instead of returning a boolean value
current [Versioned_typed_tcp.Mode]
current [Versioned_typed_tcp.Dont_care_about_mode]

D
debug_snapshot [Tcp_file.Server]
debug_snapshot () returns an s-expression containing details of the current state of the Tcp_file server.
description [Rpc.Implementation]
disconnect [Tcp_file.Client]
dispatch [Rpc.State_rpc]
dispatch [Rpc.Pipe_rpc]
dispatch [Rpc.Rpc]
dispatch_exn [Rpc.Pipe_rpc]
dispatch_exn [Rpc.Rpc]
dispatch_multi [Versioned_rpc.Caller_converts.Pipe_rpc.S]
multi-version dispatch
dispatch_multi [Versioned_rpc.Caller_converts.Rpc.S]
multi-version dispatch

F
finalise [Async_gc]
finalise is rebound to avoid accidental use in Async programs.
finalize [Async_gc]
finalize f x is like Gc.finalise f x, except that the finalizer is guaranteed to run as an Async job (i.e.
flushed [Versioned_typed_tcp.S.Server]
flushed [Versioned_typed_tcp.Make.Server]
flushed [Tcp_file.Server]
flushed t becomes determined only once all messages written to t have been written to disk.
flushed [File_writer]
flushed_time [Typed_tcp_intf.Arg.Transport]
flushed_time [Typed_tcp_intf.S]

H
has_client_id [Typed_tcp_intf.S]

I
implement [Rpc.State_rpc]
implement [Rpc.Pipe_rpc]
implement [Rpc.Rpc]
implement_multi [Versioned_rpc.Callee_converts.S]
implement multiple versions at once
is_locked [Lock_file]
is_locked path returns true when the file at path exists and is locked, false otherwise.

L
last_connect_error [Versioned_typed_tcp.S.Client]
last_connect_error t returns the error (if any) that happened on the last connection attempt.
last_connect_error [Versioned_typed_tcp.Make.Client]
length [Tcp_file.Client.Message]
listen [Versioned_typed_tcp.S.Client]
listen t
listen [Versioned_typed_tcp.S.Server]
listen t listen to the stream of messages and errors coming from clients
listen [Versioned_typed_tcp.Make.Client]
listen [Versioned_typed_tcp.Make.Server]
listen [Typed_tcp_intf.S]
listen_ignore_errors [Versioned_typed_tcp.S.Client]
listen_ignore_errors t like listen, but with no errors or meta data.
listen_ignore_errors [Versioned_typed_tcp.S.Server]
listen_ignore_errors t like listen, but omit error conditions and metadata.
listen_ignore_errors [Versioned_typed_tcp.Make.Client]
listen_ignore_errors [Versioned_typed_tcp.Make.Server]
listen_ignore_errors [Typed_tcp_intf.S]
load [Persistent_singleton.S]
load [Persistent_singleton.Make]
lookup_marshal_fun [Versioned_typed_tcp.Datumable]
lookup_marshal_fun v This function takes a version v, and returns a function that will downgrade (if necessary) the current version to v and then write it to a bigsubstring.
lookup_marshal_fun [Versioned_typed_tcp.Datumable_of_binable.Make_datumable5]
lookup_unmarshal_fun [Versioned_typed_tcp.Datumable]
lookup_unmarshal_fun v This function takes a version v, and returns a function that unmarshals a message and upgrades it, returning zero or more messages as a result of the upgrade.
lookup_unmarshal_fun [Versioned_typed_tcp.Datumable_of_binable.Make_datumable5]
low_version [Versioned_typed_tcp.Versions]
low_version [Versioned_typed_tcp.Datumable_of_binable.Pre_versions]

M
monitor [File_writer]

N
name [Rpc.State_rpc]
name [Rpc.Pipe_rpc]
name [Rpc.Rpc]
null [Rpc.Server]

O
of_v [Versioned_typed_tcp.Datumable_of_binable.V.S]
open_file [Tcp_file.Server]
open_file filename open a file for writing.
ounit_tests [Typed_tcp_intf]
ounit_tests [Versioned_typed_tcp]
ounit_tests [Versioned_rpc]
ounit_tests [Unpack_sequence]
ounit_tests [Typed_tcp]
ounit_tests [Tcp_file]
ounit_tests [Tcp]
ounit_tests [Std]
ounit_tests [Rpc]
ounit_tests [Persistent_singleton]
ounit_tests [Lock_file]
ounit_tests [Import]
ounit_tests [File_writer]
ounit_tests [File_tail]
ounit_tests [Async_gc]

P
port [Versioned_typed_tcp.S.Server]
get the port that the server is listening on
port [Versioned_typed_tcp.Make.Server]
prod_version [Versioned_typed_tcp.Versions]
prod_version [Versioned_typed_tcp.Datumable_of_binable.Pre_versions]
protocol_version [Versioned_typed_tcp]

R
read [Typed_tcp_intf.Arg.Transport]
read [Tcp_file.Client]
read t filename provides a pipe that will be filled with messages from filename starting from the beginning, and continuing until the server calls unlink or close.
request [Versioned_rpc.Menu]
request an rpc version menu from an rpc connection
rpc [Versioned_rpc.Callee_converts.Make.Register]
rpc [Versioned_rpc.Caller_converts.Pipe_rpc.Make.Register]
rpc [Versioned_rpc.Caller_converts.Rpc.Make.Register]

S
save [Persistent_singleton.S]
save [Persistent_singleton.Make]
schedule_bigstring [File_writer]
schedule_message [Tcp_file.Server]
schedule_message t msg is write, but the message is taken from the provided bigstring.
send [Versioned_typed_tcp.S.Client]
send t msg send a message to the server.
send [Versioned_typed_tcp.S.Server]
send t client msg send msg to client.
send [Versioned_typed_tcp.Make.Client]
send [Versioned_typed_tcp.Make.Server]
send [Typed_tcp_intf.S]
send_ignore_errors [Versioned_typed_tcp.S.Client]
send_ignore_errors t exactly like send but with no error reporting.
send_ignore_errors [Versioned_typed_tcp.S.Server]
send_ignore_errors t client msg Just like send, but does not report results.
send_ignore_errors [Versioned_typed_tcp.Make.Client]
send_ignore_errors [Versioned_typed_tcp.Make.Server]
send_ignore_errors [Typed_tcp_intf.S]
send_to_all [Versioned_typed_tcp.S.Server]
send_to_all t msg send the same message to all connected clients.
send_to_all [Versioned_typed_tcp.Make.Server]
send_to_all [Typed_tcp_intf.S]
send_to_all_ignore_errors [Versioned_typed_tcp.S.Server]
send_to_all_ignore_errors t msg Just like send_to_all but with no error reporting.
send_to_all_ignore_errors [Versioned_typed_tcp.Make.Server]
serve [Tcp_file.Server]
serve ~port () must be called before clients will be able to connect.
serve [Tcp]
serve ~port handler starts a server on the specified port.
serve [Rpc.Connection]
serve server ~port ?on_handshake_error () starts a server with the given implementation on port.
serve_existing_static_file [Tcp_file.Server]
serve_existing_static_file filename adds filename to the list of files that can be accessed via the Client module.
serve_unix [Tcp]
serve_unix ~file handler starts a server on the specified file (unix domain socket).
server_with_close [Rpc.Connection]
sexp_of_t [Versioned_typed_tcp.Client_msg.Control]
sexp_of_t [Versioned_typed_tcp.Client_msg]
sexp_of_t [Versioned_typed_tcp.Server_msg.Control]
sexp_of_t [Versioned_typed_tcp.Read_result]
sexp_of_t [Versioned_typed_tcp.Dont_care_about_mode]
sexp_of_t [Unpack_sequence.Result]
sexp_of_t [Tcp_file.Client.Error]
sexp_of_t [File_writer]
sexp_of_t [File_tail.Update]
sexp_of_t [File_tail.Warning]
sexp_of_t [File_tail.Error]
state [Versioned_typed_tcp.S.Client]
state t
state [Versioned_typed_tcp.Make.Client]
stop_serving [Tcp_file.Server]
stop_serving t stops serving the file t to clients.
supported_versions [Versioned_rpc.Menu]
find what versions of a particular rpc are supported

T
t_of_sexp [Versioned_typed_tcp.Client_msg.Control]
t_of_sexp [Versioned_typed_tcp.Client_msg]
t_of_sexp [Versioned_typed_tcp.Server_msg.Control]
t_of_sexp [Versioned_typed_tcp.Read_result]
t_of_sexp [Versioned_typed_tcp.Dont_care_about_mode]
t_of_sexp [Tcp_file.Client.Error]
t_of_sexp__ [Versioned_typed_tcp.Client_msg.Control]
t_of_sexp__ [Versioned_typed_tcp.Client_msg]
t_of_sexp__ [Versioned_typed_tcp.Server_msg.Control]
t_of_sexp__ [Versioned_typed_tcp.Read_result]
t_of_sexp__ [Versioned_typed_tcp.Dont_care_about_mode]
tail [Tcp_file.Client]
tail t filename same as read, but delivers messages starting at some unspecified point near the current end of the file and continuing until the server calls unlink or close.
test_version [Versioned_typed_tcp.Versions]
to_bigstring [Tcp_file.Client.Message]
to_error [Unpack_sequence.Result]
to_string [Tcp_file.Client.Message]
to_string [Tcp_file.Client.Error]
to_string_exn [Tcp_file.Client.Message]
to_string_hum [File_tail.Update]
to_string_hum [File_tail.Warning]
to_string_hum [File_tail.Error]
to_v [Versioned_typed_tcp.Datumable_of_binable.V.S]

U
unpack_bin_prot_from_reader [Unpack_sequence]
unpack_from_reader [Unpack_sequence]
unpack_from_reader unpacker unpacks all the values from reader until reaching EOF.
unpack_from_string_pipe [Unpack_sequence]

V
version [Rpc.Rpc]
versions [Versioned_rpc.Callee_converts.S]
all versions implemented by implement_multi (useful for computing which old versions may be pruned)
versions [Versioned_rpc.Caller_converts.Pipe_rpc.S]
all versions supported by dispatch_multi.
versions [Versioned_rpc.Caller_converts.Rpc.S]
all versions supported by dispatch_multi.

W
waiting_create [Lock_file]
wait_create ~path ~message becomes determined when the file at path gets locked.
with_client [Rpc.Connection]
with_client ~host ~port f connects to the server at (host,port) and runs f until an exception is thrown or until the returned Deferred is fulfilled.
with_close [Rpc.Connection]
with_close tries to create a t using the given reader and writer.
with_connection [Tcp]
with_connection ~host ~port f looks up host from a string (using DNS as needed), connects, then calls f passing in a reader and a writer for the connected socket.
with_file [Tcp_file.Server]
with_file filename ~f opens filename and runs f, passing the resultant t.
write [Typed_tcp_intf.Arg.Transport]
write [File_writer]
write t s writes s to the file.
write_bigsubstring [File_writer]
write_bin_prot [File_writer]
write_message [Tcp_file.Server]
write_message t msg write msg to t.
write_sexp [Tcp_file.Server]
write_sexp t sexp writes a Sexp.t as a single message
write_sexp [File_writer]
write_substring [File_writer]
writer_monitor [Tcp_file.Server]
monitor t returns a monitor which will listen to errors arising from the internal writer used by t.