package irc-client

  1. Overview
  2. Docs
module Io : Irc_transport.IO with type 'a t = 'a and type inet_addr = Unix.inet_addr and type file_descr = Unix.file_descr
include sig ... end
val send : connection:connection_t -> Irc_message.t -> unit Io.t
val send_join : connection:connection_t -> channel:string -> unit Io.t
val send_nick : connection:connection_t -> nick:string -> unit Io.t
val send_pass : connection:connection_t -> password:string -> unit Io.t
val send_pong : connection:connection_t -> message:string -> unit Io.t
val send_privmsg : connection:connection_t -> target:string -> message:string -> unit Io.t
val send_notice : connection:connection_t -> target:string -> message:string -> unit Io.t
val send_quit : connection:connection_t -> unit Io.t
val send_user : connection:connection_t -> username:string -> mode:int -> realname:string -> unit Io.t
val connect : ?username:string -> ?mode:int -> ?realname:string -> ?password:string -> addr:Io.inet_addr -> port:int -> nick:string -> unit -> connection_t Io.t
val connect_by_name : ?username:string -> ?mode:int -> ?realname:string -> ?password:string -> server:string -> port:int -> nick:string -> unit -> connection_t option Io.t
val listen : connection:connection_t -> callback:(connection_t -> Irc_message.parse_result -> unit Io.t) -> unit Io.t
OCaml

Innovation. Community. Security.