Skip to content

Commit

Permalink
Add socket_id
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 24, 2025
1 parent 18d7149 commit 659dddb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/srt.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type transtype = Srt.transtype
type socket_status = Srt.socket_status
type socket = Srt.socket

let socket_id s = s

let resources = Hashtbl.create 0

let string_of_errno = function
Expand Down
1 change: 1 addition & 0 deletions src/srt.mli
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ exception Error of errno * string
val startup : unit -> unit
val cleanup : unit -> unit
val create_socket : unit -> socket
val socket_id : socket -> int
val getsockstate : socket -> socket_status
val bind : socket -> Unix.sockaddr -> unit
val bind_posix_socket : socket -> Posix_socket.sockaddr Ctypes.ptr -> unit
Expand Down

0 comments on commit 659dddb

Please sign in to comment.