Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type 'a t constraint 'a = [< Async.Socket.Address.t ]
type 'a socket = Async.Reader.t * Async.Writer.t * unit Async.Deferred.t
val create :
read_buffer_size:int ->
protocol:'t Gluten.runtime ->
't ->
'a socket ->
'a t Async.Deferred.t
val upgrade : _ t -> Gluten.impl -> unit
val shutdown : _ t -> unit Async.Deferred.t
val is_closed : _ t -> bool
val create_default :
?alpn_protocols:string list ->
([ `Unconnected ], [< Async.Socket.Address.t ] as 'a) Async.Socket.t ->
'a Async.Tcp.Where_to_connect.t ->
'a socket Async.Deferred.t