package async_smtp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Peer_info : sig ... end
type t
val create : ?flows:string list -> emulate_tls_for_test:bool -> remote_address:Core.Host_and_port.t -> ?local_ip_address:Async.Socket.Address.Inet.t -> ?remote_ip_address:Async.Socket.Address.Inet.t -> Async.Reader.t -> Async.Writer.t -> Async_smtp__.Client_config.t -> t
val create_bsmtp : ?flows:string list -> Async.Writer.t -> Async_smtp__.Client_config.t -> t
val config : t -> Async_smtp__.Client_config.t
val info : t -> Peer_info.t option
val is_using_tls : t -> bool
val with_session : t -> log:Async.Log.t -> component:string list -> credentials:Async_smtp__.Credentials.elt list -> f:(t -> 'a Async.Deferred.Or_error.t) -> 'a Async.Deferred.Or_error.t
val do_helo : t -> log:Async.Log.t -> component:string list -> unit Async.Deferred.Or_error.t
val send : t -> log:Async.Log.t -> ?flows:string list -> component:string list -> here:Lexing.position -> Smtp_command.t -> unit Async.Deferred.Or_error.t
val receive : ?on_eof: (?partial:Smtp_reply.partial -> unit -> Smtp_reply.t Async.Deferred.Or_error.t) -> ?timeout:Core.Time.Span.t -> ?flows:string list -> t -> log:Async.Log.t -> component:string list -> here:Lexing.position -> [ `Bsmtp | `Received of Smtp_reply.t ] Async.Deferred.Or_error.t
val send_receive : ?on_eof: (?partial:Smtp_reply.partial -> unit -> Smtp_reply.t Async.Deferred.Or_error.t) -> ?timeout:Core.Time.Span.t -> t -> log:Async.Log.t -> ?flows:string list -> component:string list -> here:Lexing.position -> Smtp_command.t -> [ `Bsmtp | `Received of Smtp_reply.t ] Async.Deferred.Or_error.t
val send_string : t -> log:Async.Log.t -> ?flows:string list -> component:string list -> here:Lexing.position -> string -> unit Async.Deferred.Or_error.t
val send_receive_string : ?on_eof: (?partial:Smtp_reply.partial -> unit -> Smtp_reply.t Async.Deferred.Or_error.t) -> ?timeout:Core.Time.Span.t -> t -> log:Async.Log.t -> ?flows:string list -> component:string list -> here:Lexing.position -> string -> [ `Bsmtp | `Received of Smtp_reply.t ] Async.Deferred.Or_error.t
val writer : t -> Async.Writer.t
val reader : t -> Async.Reader.t option
val remote_address : t -> Core.Host_and_port.t option
val local_ip_address : t -> Async.Socket.Address.Inet.t option
val remote_ip_address : t -> Async.Socket.Address.Inet.t option
OCaml

Innovation. Community. Security.