package srt

  1. Overview
  2. Docs

Parameters

module F : Cstubs.FOREIGN

Signature

include module type of struct include Srt_types end
module Constants = Srt_types.Constants
include module type of struct include Constants end
type socket_status = [
  1. | `Broken
  2. | `Closed
  3. | `Closing
  4. | `Connected
  5. | `Connecting
  6. | `Init
  7. | `Listening
  8. | `Nonexist
  9. | `Opened
]
type socket_opt = [
  1. | `Conntimeo
  2. | `Enforced_encryption
  3. | `Messageapi
  4. | `Passphrase
  5. | `Payloadsize
  6. | `Pbkeylen
  7. | `Rcvbuf
  8. | `Rcvdata
  9. | `Rcvlatency
  10. | `Rcvsyn
  11. | `Rcvtimeo
  12. | `Reuseaddr
  13. | `Sndbuf
  14. | `Sndsyn
  15. | `Sndtimeo
  16. | `Streamid
  17. | `Transtype
  18. | `Udp_rcvbuf
  19. | `Udp_sndbuf
]
type transtype = [
  1. | `File
  2. | `Invalid
  3. | `Live
]
type poll_flag = [
  1. | `Error
  2. | `Read
  3. | `Write
]
type errno = [
  1. | `Easyncfail
  2. | `Easyncrcv
  3. | `Easyncsnd
  4. | `Eboundsock
  5. | `Econgest
  6. | `Econnfail
  7. | `Econnlost
  8. | `Econnrej
  9. | `Econnsetup
  10. | `Econnsock
  11. | `Eduplisten
  12. | `Efile
  13. | `Einvalbufferapi
  14. | `Einvalmsgapi
  15. | `Einvop
  16. | `Einvparam
  17. | `Einvpollid
  18. | `Einvrdoff
  19. | `Einvsock
  20. | `Einvwroff
  21. | `Elargemsg
  22. | `Enobuf
  23. | `Enoconn
  24. | `Enolisten
  25. | `Enoserver
  26. | `Epeererr
  27. | `Epollempty
  28. | `Erdperm
  29. | `Erdvnoserv
  30. | `Erdvunbound
  31. | `Eresource
  32. | `Esclosed
  33. | `Esecfail
  34. | `Esockfail
  35. | `Esysobj
  36. | `Ethread
  37. | `Etimeout
  38. | `Eunboundsock
  39. | `Eunknown
  40. | `Ewrperm
  41. | `Success
]
val enable_lostbytecount : bool
val socket_status : socket_status Ctypes_static.typ
val socket_opt : socket_opt Ctypes_static.typ
val srtt_live : int64
val srtt_file : int64
val srtt_invalid : int64
val transtype : transtype Ctypes_static.typ
val log_crit : int
val log_err : int
val log_warning : int
val log_notice : int
val log_debug : int
val errno : errno Ctypes_static.typ
val srt_epoll_in : int64
val srt_epoll_out : int64
val srt_epoll_err : int64
val poll_flag_of_flag : [< `Error | `Read | `Write ] -> int64
val poll_flag : poll_flag Ctypes_static.typ
module Def = Srt_types.Def
include sig ... end
type socket = int
val const_string : string Ctypes.typ
module PollEvent : sig ... end
module CBytePerfMon : sig ... end
val startup : (unit -> unit F.return) F.result
val cleanup : (unit -> unit F.return) F.result
val getlasterror : (int Ctypes_static.ptr -> errno F.return) F.result
val getlasterror_str : (unit -> string F.return) F.result
val clearlasterror : (unit -> unit F.return) F.result
val create_socket : (unit -> int F.return) F.result
val bind : (int -> Posix_socket.sockaddr Ctypes_static.ptr -> int -> int F.return) F.result
val strlen : (char Ctypes_static.ptr -> int F.return) F.result
val listen : (int -> int -> int F.return) F.result
val listen_callback : (int -> ListenCallback.t -> unit Ctypes_static.ptr -> int F.return) F.result
val accept : (int -> Posix_socket.sockaddr Ctypes_static.ptr -> int Ctypes_static.ptr -> int F.return) F.result
val connect : (int -> Posix_socket.sockaddr Ctypes_static.ptr -> int -> int F.return) F.result
val rendez_vous : (int -> Posix_socket.sockaddr Ctypes_static.ptr -> int -> Posix_socket.sockaddr Ctypes_static.ptr -> int -> int F.return) F.result
val send : (int -> string -> int -> int F.return) F.result
val recv : (int -> char Ctypes_static.ptr -> int -> int F.return) F.result
val recvmsg : (int -> char Ctypes_static.ptr -> int -> int F.return) F.result
val sendmsg : (int -> string -> int -> int -> bool -> int F.return) F.result
val setsockflag : (int -> socket_opt -> unit Ctypes_static.ptr -> int -> int F.return) F.result
val getsockflag : (int -> socket_opt -> unit Ctypes_static.ptr -> int Ctypes_static.ptr -> int F.return) F.result
val getsockstate : (int -> socket_status F.return) F.result
val setloglevel : (int -> unit F.return) F.result
val close : (int -> int F.return) F.result
val epoll_create : (unit -> int F.return) F.result
val epoll_add_usock : (int -> int -> int Ctypes_static.ptr -> int F.return) F.result
val epoll_remove_usock : (int -> int -> int F.return) F.result
val epoll_update_usock : (int -> int -> int Ctypes_static.ptr -> int F.return) F.result
val epoll_uwait : (int -> PollEvent.t Ctypes.structure Ctypes_static.ptr -> int -> int64 -> int F.return) F.result
val epoll_wait : (int -> int Ctypes_static.ptr -> int Ctypes_static.ptr -> int Ctypes_static.ptr -> int Ctypes_static.ptr -> int64 -> unit Ctypes_static.ptr -> unit Ctypes_static.ptr -> unit Ctypes_static.ptr -> unit Ctypes_static.ptr -> int F.return) F.result
val epoll_release : (int -> int F.return) F.result
val bstats : (int -> CBytePerfMon.t Ctypes.structure Ctypes_static.ptr -> int -> int F.return) F.result
val bistats : (int -> CBytePerfMon.t Ctypes.structure Ctypes_static.ptr -> int -> int -> int F.return) F.result
OCaml

Innovation. Community. Security.