SrtOCaml bindings for the libsrt.
type listen_callback = socket -> int -> Unix.sockaddr -> string option -> boolval messageapi : ([ `Write ], bool) socket_optWrite only options.
val payloadsize : ([ `Write ], int) socket_optval transtype : ([ `Write ], transtype) socket_optval conntimeo : ([ `Write ], int) socket_optval passphrase : ([ `Write ], string) socket_optval enforced_encryption : ([ `Write ], bool) socket_optval rcvdata : ([ `Read ], int) socket_optRead only options.
val rcvsyn : ([ `Read | `Write ], bool) socket_optRead/write options.
val sndsyn : ([ `Read | `Write ], bool) socket_optval rcvtimeo : ([ `Read | `Write ], int) socket_optval sndtimeo : ([ `Read | `Write ], int) socket_optval reuseaddr : ([ `Read | `Write ], bool) socket_optval rcvbuf : ([ `Read | `Write ], int) socket_optval sndbuf : ([ `Read | `Write ], int) socket_optval udp_rcvbuf : ([ `Read | `Write ], int) socket_optval udp_sndbuf : ([ `Read | `Write ], int) socket_optval rcvlatency : ([ `Read | `Write ], int) socket_optval streamid : ([ `Read | `Write ], string) socket_optval pbkeylen : ([ `Read | `Write ], int) socket_optval ipv6only : ([ `Read | `Write ], bool) socket_optval latency : ([ `Read | `Write ], int) socket_optval peerlatency : ([ `Read | `Write ], int) socket_opttype errno = [ | `Easyncfail| `Easyncrcv| `Easyncsnd| `Eboundsock| `Econgest| `Econnfail| `Econnlost| `Econnrej| `Econnsetup| `Econnsock| `Eduplisten| `Efile| `Einvalbufferapi| `Einvalmsgapi| `Einvop| `Einvparam| `Einvpollid| `Einvrdoff| `Einvsock| `Einvwroff| `Elargemsg| `Enobuf| `Enoconn| `Enolisten| `Enoserver| `Epeererr| `Epollempty| `Erdperm| `Erdvnoserv| `Erdvunbound| `Eresource| `Esclosed| `Esecfail| `Esockfail| `Esysobj| `Ethread| `Etimeout| `Eunboundsock| `Eunknown| `Ewrperm| `Success ]exception Error of errno * stringval create_socket : unit -> socketval socket_id : socket -> intval getsockstate : socket -> socket_statusval bind : socket -> Unix.sockaddr -> unitval bind_posix_socket : socket -> Posix_socket.sockaddr Ctypes.ptr -> unitval listen_callback : socket -> listen_callback -> unitval listen : socket -> int -> unitval connect : socket -> Unix.sockaddr -> unitval connect_posix_socket : socket -> Posix_socket.sockaddr Ctypes.ptr -> unitval rendez_vous_posix_socket :
socket ->
Posix_socket.sockaddr Ctypes.ptr ->
Posix_socket.sockaddr Ctypes.ptr ->
unitval rendez_vous : socket -> Unix.sockaddr -> Unix.sockaddr -> unitval send : socket -> bytes -> intval recv : socket -> bytes -> int -> intval sendmsg : socket -> bytes -> int -> bool -> intval recvmsg : socket -> bytes -> int -> intval getsockflag : socket -> ([> `Read ], 'a) socket_opt -> 'aval setsockflag : socket -> ([> `Write ], 'a) socket_opt -> 'a -> unitval close : socket -> unitmodule Log : sig ... endmodule Poll : sig ... endmodule Stats : sig ... end